Wrap all RTS functions exposed to AMPI programs in special macros
[charm.git] / relink.script
blobaaf2da807b9016906a932174a20a6c154674d3ab
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 netlrts-linux-smp.
11 # by Chee Wai Lee 10/13/2003
13 # rewritten by
14 # Gengbin Zheng 01/15/2004
16 # modified by
17 # Abhinav Bhatele 11/06/2007
19 if test ! -d "$1"
20 then
21 echo "$0 <directory>" && exit 1
24 subdirs="bin include lib lib_so tmp"
26 # remove symbolic link
27 rm -f $subdirs
29 for i in $subdirs
31 # skip nonexistent subdir
32 test ! -d $1/$i && continue;
33 echo ln -s $1/$i $i
34 ln -s $1/$i $i
35 done
37 rm -f VERSION
39 if test -f $1/include/VERSION
40 then
41 echo ln -s $1/include/VERSION VERSION
42 ln -s $1/include/VERSION VERSION