*** empty log message ***
[charm.git] / relink.script
blob0e360e457ea5bd640a552973d630817f2bf0ea29
1 #!/bin/sh
3 # The essential directories for the proper functioning of charm++ is
4 # usually linked to the latest build version. For the convenience of
5 # users wishing to alternate between different builds of charm++,
6 # a simple script has been provided.
8 # Usage: relink.script <build-version-name-string>
10 # Example: relink.script net-linux-smp.
11 # 10/13/2003 by Chee Wai Lee
13 # rewritten by
14 # Gengbin Zheng 1/15/2004
16 if test ! -d "$1"
17 then
18 echo "$0 <directory>" && exit 1
21 subdirs="bin include lib lib_so tmp"
23 # remove symbolic link
24 rm -f $subdirs
26 for i in $subdirs
28 # skip nonexistent subdir
29 test ! -d $1/$i && continue;
30 echo ln -s $1/$i $i
31 ln -s $1/$i $i
32 done