refactor: re-implement the project, which should be available for both org and com version of OpenFOAM

This commit is contained in:
2024-09-11 21:19:50 +08:00
parent 412142f88e
commit 9b874ad9b9
7 changed files with 168 additions and 164 deletions

View File

@ -3,12 +3,10 @@
objDir=$WM_PROJECT_DIR/wmake
if [ -d $objDir ]
then
cwd=`pwd`
chmod +x ./ofCmakeConfig
chmod +x ./occ
rm -f $objDir/ofCmakeConfig $objDir/occ
ln -s $cwd/ofCmakeConfig $objDir/
ln -s $cwd/occ $objDir/
cp ofCmakeConfig occ wmakelog2cmakelists.py $objDir/
echo "installed ofCmakeConfig"
else
echo "please active OpenFOAM environment"