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 netlrts-linux-smp.
11 # by Chee Wai Lee 10/13/2003
14 # Gengbin Zheng 01/15/2004
17 # Abhinav Bhatele 11/06/2007
21 echo "$0 <directory>" && exit 1
24 subdirs
="bin include lib lib_so tmp"
26 # remove symbolic link
31 # skip nonexistent subdir
32 test ! -d $1/$i && continue;
39 if test -f $1/include
/VERSION
41 echo ln -s $1/include
/VERSION VERSION
42 ln -s $1/include
/VERSION VERSION