added a little error checking
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 19 Nov 2004 05:31:54 +0000 (05:31 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 19 Nov 2004 05:31:54 +0000 (05:31 +0000)
relink.script

index f3f2c65e7d3f52923c138cf713c452b909911050..d67e52289d5c17e1af6b46650b38182c56c121b9 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+if test ! -d "$1" 
+then
+ echo "$0 <directory>"
+ exit 1
+fi
+
 rm -f bin include lib lib_so tmp
 
 ln -s $1/bin bin