Changeset 16917


Ignore:
Timestamp:
11/25/13 07:58:09 (11 years ago)
Author:
Eric.Larour
Message:

CHG: adapted pathprepend and pathappend to adapt to cygwin conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r16797 r16917  
    33pathprepend(){ #{{{
    44        if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
    5                 export PATH="$1:$PATH"
     5                name=$1
     6                if [[ "$ISSM_ARCH" == "cygwin-intel" ]]; then
     7                        #export path using the cygwin convention
     8                        name=`cygpath -u $1`
     9                fi
     10                export PATH="$name:$PATH"
    611        fi
    712} #}}}
    813pathappend(){ #{{{
    914        if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
    10                 export PATH="$PATH:$1"
     15                name=$1
     16                if [[ "$ISSM_ARCH" == "cygwin-intel" ]]; then
     17                        #export path in cygwin convention
     18                        name=`cygpath -u $1`
     19                fi
     20                export PATH="$PATH:$name"
    1121        fi
    1222} #}}}
Note: See TracChangeset for help on using the changeset viewer.