X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tinyos.sh;h=6886286bd8dc2a4edf4e1d8a8c15a46400105246;hb=c8f58101ffe3004bd4c8a988c70c12f16bfca086;hp=71b0960934764d45f9695482f830f9b1896d93f7;hpb=863e42871047e90af1ab14b319e1c51e2f471774;p=tinyos-2.x.git diff --git a/tinyos.sh b/tinyos.sh index 71b09609..6886286b 100644 --- a/tinyos.sh +++ b/tinyos.sh @@ -5,7 +5,7 @@ # and may source again at any time to change which installed TinyOS source # tree their code shall be built against. -TOSCFG=~/.tosrc +TOSCFG="$HOME/.tosrc" TOSBASE=/opt/tinyos RCFILES="$HOME/.bashrc $HOME/.shrc $HOME/.kshrc $HOME/.cshrc $ENV" @@ -20,7 +20,7 @@ gettosroot() fi } -# Update CLASSPATH by replacing the element value in $1 with the element value +# Update CLASSPATH by replacing the element value in $1 with the element value # in $2. An empty $2 removes element $1, if present. An empty $1, or $1 not # present, adds $2. updclasspath() @@ -101,7 +101,7 @@ elif [ "$(basename -- $0)" = tinyos.sh ]; then # Operations below here cannot be executed in a sub-shell echo "tinyos: must be sourced" elif [ "$1" = "-u" ]; then - if [ -f $TOSCFG ]; then + if [ -f "$TOSCFG" ]; then uninstallshrc updclasspath "$TOSROOT" "" unset TOSROOT TOSDIR MAKERULES