From ddbc29bdfb0f1cc879700eed03f7f415a03c9b0e Mon Sep 17 00:00:00 2001 From: Dominik Christ Date: Mon, 16 Jun 2014 17:00:21 +0100 Subject: [PATCH] Added bazaar packages --- Allwmake.firstInstall | 3 +++ extend-bazaar/Allpurge | 1 + extend-bazaar/Allwclean | 16 ++++++++++++++++ extend-bazaar/Allwmake | 30 ++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100755 extend-bazaar/Allpurge create mode 100755 extend-bazaar/Allwclean create mode 100755 extend-bazaar/Allwmake diff --git a/Allwmake.firstInstall b/Allwmake.firstInstall index 0bf9939fe..2a25840b4 100755 --- a/Allwmake.firstInstall +++ b/Allwmake.firstInstall @@ -83,4 +83,7 @@ fi export WM_NCOMPPROCS=1 ( cd $WM_THIRD_PARTY_DIR && ./AllMake.post ) +# Build extend-bazaar packages +#( cd extend-bazaar && ./Allwmake) + # ----------------------------------------------------------------- end-of-file diff --git a/extend-bazaar/Allpurge b/extend-bazaar/Allpurge new file mode 100755 index 000000000..41c72f62e --- /dev/null +++ b/extend-bazaar/Allpurge @@ -0,0 +1 @@ +find . ! -name 'All*' | xargs rm -rf diff --git a/extend-bazaar/Allwclean b/extend-bazaar/Allwclean new file mode 100755 index 000000000..1064dbdae --- /dev/null +++ b/extend-bazaar/Allwclean @@ -0,0 +1,16 @@ +#!/bin/bash +cd ${0%/*} || exit 1 # run from this directory + +# Clean compilation in Fluid-Structure Interaction package +cd FluidStructureInteraction/src/ +./Allwclean +cd - + +# Clean compilation in cfMesh mesh generation package +cd cfMesh-v1.0/ +wclean libso meshLibrary +wclean all executables +wclean all utilities +cd - + +# ----------------------------------------------------------------- end-of-file diff --git a/extend-bazaar/Allwmake b/extend-bazaar/Allwmake new file mode 100755 index 000000000..7e025f651 --- /dev/null +++ b/extend-bazaar/Allwmake @@ -0,0 +1,30 @@ +#!/bin/bash +cd ${0%/*} || exit 1 # run from this directory + + +# Install Fluid-Structure Interaction package +if [ ! -d "FluidStructureInteraction" ]; then + wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz + tar zxvf Fsi_31.tar.gz + rm Fsi_31.tar.gz +fi + +cd FluidStructureInteraction/src/ +./Allwmake +cd - + +# Install cfMesh mesh generation package +if [ ! -d "cfMesh-v1.0" ]; then + wget http://www.c-fields.com/Media/Default/Repository/cfMesh-v1.0.tgz + tar zxvf cfMesh-v1.0.tgz + rm cfMesh-v1.0.tgz +fi +# Change FOAM_LIBBIN to FOAM_USER_LIBBIN +find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i s/FOAM_LIBBIN/FOAM_USER_LIBBIN/g +find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i s/FOAM_APPBIN/FOAM_USER_APPBIN/g + +cd cfMesh-v1.0/ +./Allwmake +cd - + +# ----------------------------------------------------------------- end-of-file