2 cd ${0%/*} ||
exit 1 # run from this directory
5 if [ ! -z "$EXTEND_BAZAAR_TO_SITE" ]; then
6 echo "Bazaar stuff installed to $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN and will be accessible to everyone. To change this unset variable EXTEND_BAZAAR_TO_SITE"
8 echo "Bazaar stuff installed to $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN and will be accessible only for the current user. To change this set variable EXTEND_BAZAAR_TO_SITE"
15 if [ ! -z "$EXTEND_BAZAAR_TO_SITE" ]; then
23 # remove installation to general binaries
24 find $pkg -type f |
grep "Make/files" |
grep -v bak |
xargs sed -i.bak
-e s
/FOAM_LIBBIN
/FOAM_
${dst}_LIBBIN
/g
25 find $pkg -type f |
grep "Make/files" |
grep -v bak |
xargs sed -i.bak
-e s
/FOAM_APPBIN
/FOAM_
${dst}_APPBIN
/g
27 # revert installation to the "other" destination
28 find $pkg -type f |
grep "Make/files" |
grep -v bak |
xargs sed -i.bak
-e s
/FOAM_
${wrong}_LIBBIN
/FOAM_
${dst}_LIBBIN
/g
29 find $pkg -type f |
grep "Make/files" |
grep -v bak |
xargs sed -i.bak
-e s
/FOAM_
${wrong}_APPBIN
/FOAM_
${dst}_APPBIN
/g
33 # Install Fluid-Structure Interaction package
34 if [ ! -d "FluidStructureInteraction" ]; then
35 wget http
://openfoamwiki.net
/images
/5/52/Fsi_31.
tar.gz
36 tar zxvf Fsi_31.
tar.gz
40 setDestination FluidStructureInteraction
43 cd FluidStructureInteraction
/src
47 # Install the makeAxialMesh utilitiy
48 if [ ! -d "MakeAxialMesh" ]; then
49 svn
export svn
://svn.code.sf.net
/p
/openfoam-extend
/svn
/trunk
/Breeder_1.6
/utilities
/mesh
/manipulation
/MakeAxialMesh MakeAxialMesh
52 setDestination MakeAxialMesh
54 wmake MakeAxialMesh
/makeAxialMesh
56 # ----------------------------------------------------------------- end-of-file