source: trunk/environment.sh @ 19

Last change on this file since 19 was 15, checked in by rosiere, 18 years ago

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.3 KB
Line 
1#!/bin/sh
2
3declare OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'`
4
5case ${OS_FOUND} in
6    "SunOS-sun4X")
7        export TARGET_ARCH=gccsparcOS5
8        export EXE_SUFFIX=
9        ;;
10    "Linux-iX86")
11        export TARGET_ARCH=linux
12        export EXE_SUFFIX=
13        ;;
14    "FreeBSD-iX86")
15        export TARGET_ARCH=freebsd
16        export EXE_SUFFIX=
17        ;;
18    "CYGWIN_NT-5.1-iX86")
19        export TARGET_ARCH=cygwin
20        export EXE_SUFFIX=.exe
21        ;;     
22    *) 
23     echo "Unknown OS found"
24esac
25
26# Export environement
27export  MORPHEO_TOPLEVEL=${PWD}
28export  MORPHEO_PLATFORMS=${MORPHEO_TOPLEVEL}/Platforms
29export  MORPHEO_SOFTWARE=${MORPHEO_TOPLEVEL}/Softwares
30export  MORPHEO_IPS=${MORPHEO_TOPLEVEL}/IPs/systemC
31export  MORPHEO_SCRIPT=${MORPHEO_IPS}/processor/Morpheo/Script
32
33echo ""
34echo "OS found : $OS_FOUND"
35echo ""
36echo "Modification of environement's variable : "
37echo " - MORPHEO_TOPLEVEL    is set to ${MORPHEO_TOPLEVEL} "
38echo " - MORPHEO_PLATFORMS   is set to ${MORPHEO_PLATFORMS}"
39echo " - MORPHEO_SOFTWARE    is set to ${MORPHEO_SOFTWARE} "
40echo " - MORPHEO_IPS         is set to ${MORPHEO_IPS}      "
41echo " - MORPHEO_SCRIPT      is set to ${MORPHEO_SCRIPT}   "
42
43# No multiple add
44echo ${PATH} |grep -q ${MORPHEO_SCRIPT};
45
46if test $? -eq 1; then
47export  PATH=${PATH}:${MORPHEO_SCRIPT}
48echo " - PATH                add       ${MORPHEO_SCRIPT}   "
49fi;
50
51echo ""
Note: See TracBrowser for help on using the repository browser.