]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tinyos.sh
debug: add cfprintf macro
[tinyos-2.x.git] / tinyos.sh
index 71b0960934764d45f9695482f830f9b1896d93f7..6886286bd8dc2a4edf4e1d8a8c15a46400105246 100644 (file)
--- 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