openfoam/Allwmake
Mark Olesen 3bbd01ebfb minor changes to Allwmake script(s)
* use $WM_THIRD_PARTY_DIR variable in top-level Allwmake
  * test new shell idiom for Allwmake files:
        # run from this directory only
        cd ${0%/*} || exit 1
    this might be especially useful when building optional components
2008-06-15 17:57:55 +02:00

20 lines
287 B
Bash
Executable File

#!/bin/sh
set -x
# run from this directory only
cd ${0%/*} || exit 1
# wmake is required for subsequent targets
(cd wmake/src && make)
(cd $WM_THIRD_PARTY_DIR && ./Allwmake)
(cd src && ./Allwmake)
(cd applications && ./Allwmake)
if [ "$1" = doc ]
then
(cd doc && ./Allwmake)
fi