Changeset 79


Ignore:
Timestamp:
Mar 27, 2008, 11:07:16 AM (17 years ago)
Author:
rosiere
Message:

script environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/environment.sh

    r59 r79  
    2525
    2626# 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
     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
     32export MORPHEO_HOME=${HOME}/.morpheo
    3233
    3334echo ""
    34 echo "OS found : ${OS_FOUND}"
     35echo "OS found : $OS_FOUND"
    3536echo ""
    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}   "
     37echo "Modification of environement's variable : "
     38echo " - MORPHEO_TOPLEVEL    is set to ${MORPHEO_TOPLEVEL} "
     39echo " - MORPHEO_PLATFORMS   is set to ${MORPHEO_PLATFORMS}"
     40echo " - MORPHEO_SOFTWARE    is set to ${MORPHEO_SOFTWARE} "
     41echo " - MORPHEO_IPS         is set to ${MORPHEO_IPS}      "
     42echo " - MORPHEO_SCRIPT      is set to ${MORPHEO_SCRIPT}   "
     43echo " - MORPHEO_HOME        is set to ${MORPHEO_HOME}     "
    4244
    43 # No multiple add
     45# PATH : No multiple add
    4446echo ${PATH} |grep -q ${MORPHEO_SCRIPT};
    4547
    4648if test $? -eq 1; then
    47 export  PATH=${PATH}:${MORPHEO_SCRIPT}
    48 echo "   - PATH                add       ${MORPHEO_SCRIPT}   "
     49    export  PATH=${PATH}:${MORPHEO_SCRIPT}
     50    echo " - PATH                add       ${MORPHEO_SCRIPT}   "
     51fi;
     52
     53# test if "first run"
     54if test ! -d ${MORPHEO_HOME}; then
     55    echo " - MORPHEO_HOME        don't exist : first run       "
     56    . ${MORPHEO_SCRIPT}/first_run.sh
    4957fi;
    5058
Note: See TracChangeset for help on using the changeset viewer.