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
|
Rev | Line | |
---|
[2] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[15] | 3 | declare OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` |
---|
| 4 | |
---|
| 5 | case ${OS_FOUND} in |
---|
[2] | 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" |
---|
| 24 | esac |
---|
| 25 | |
---|
[15] | 26 | # Export environement |
---|
| 27 | export MORPHEO_TOPLEVEL=${PWD} |
---|
| 28 | export MORPHEO_PLATFORMS=${MORPHEO_TOPLEVEL}/Platforms |
---|
| 29 | export MORPHEO_SOFTWARE=${MORPHEO_TOPLEVEL}/Softwares |
---|
| 30 | export MORPHEO_IPS=${MORPHEO_TOPLEVEL}/IPs/systemC |
---|
| 31 | export MORPHEO_SCRIPT=${MORPHEO_IPS}/processor/Morpheo/Script |
---|
[2] | 32 | |
---|
[15] | 33 | echo "" |
---|
[2] | 34 | echo "OS found : $OS_FOUND" |
---|
| 35 | echo "" |
---|
[15] | 36 | echo "Modification of environement's variable : " |
---|
| 37 | echo " - MORPHEO_TOPLEVEL is set to ${MORPHEO_TOPLEVEL} " |
---|
| 38 | echo " - MORPHEO_PLATFORMS is set to ${MORPHEO_PLATFORMS}" |
---|
| 39 | echo " - MORPHEO_SOFTWARE is set to ${MORPHEO_SOFTWARE} " |
---|
| 40 | echo " - MORPHEO_IPS is set to ${MORPHEO_IPS} " |
---|
| 41 | echo " - MORPHEO_SCRIPT is set to ${MORPHEO_SCRIPT} " |
---|
| 42 | |
---|
| 43 | # No multiple add |
---|
| 44 | echo ${PATH} |grep -q ${MORPHEO_SCRIPT}; |
---|
| 45 | |
---|
| 46 | if test $? -eq 1; then |
---|
| 47 | export PATH=${PATH}:${MORPHEO_SCRIPT} |
---|
| 48 | echo " - PATH add ${MORPHEO_SCRIPT} " |
---|
| 49 | fi; |
---|
| 50 | |
---|
| 51 | echo "" |
---|
Note: See
TracBrowser
for help on using the repository browser.