Bugfix: set boundary velocity on a moving IB surface
[foam-extend-3.2.git] / extend-bazaar / Allwmake
blobebbdc2e5d34ae185e4d097bb9e57f5f513ec65e9
1 #!/bin/bash
2 cd ${0%/*} || exit 1 # run from this directory
4 echo
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"
7 else
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"
9 fi
10 echo
12 setDestination()
14 pkg=$1
15 if [ ! -z "$EXTEND_BAZAAR_TO_SITE" ]; then
16 dst="SITE"
17 wrong="USER"
18 else
19 dst="USER"
20 wrong="SITE"
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
37 rm Fsi_31.tar.gz
40 setDestination FluidStructureInteraction
43 cd FluidStructureInteraction/src
44 ./Allwmake
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