This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/vagrantSandbox/skel/bootstrapFoam.sh

28 lines
652 B
Bash
Executable file

#! /usr/bin/env bash
# Just to be sure
export WM_SCHEDULER=ccache
export CCACHE_DIR=/vagrant/ccache4vm
BOOTSTRAPLOG=/home/vagrant/bootstrapFoam.log
cd foam/foam-extend-3.0
source etc/bashrc
( cd wmake/src && make )
cd $WM_THIRD_PARTY_DIR
./AllMake.stage0 2>&1 | tee $BOOTSTRAPLOG
./AllMake.stage1 2>&1 | tee --append $BOOTSTRAPLOG
./AllMake.stage2 2>&1 | tee --append $BOOTSTRAPLOG
./AllMake.stage3 2>&1 | tee --append $BOOTSTRAPLOG
cd $WM_PROJECT_DIR
# pick up installed packages
source etc/bashrc
./Allwmake 2>&1 | tee --append $BOOTSTRAPLOG
# compile swak4Foam
cd $WM_THIRD_PARTY_DIR
./AllMake.stage5 2>&1 | tee --append $BOOTSTRAPLOG