From 8dc48f6c572aad8665b27484380f05ff814aae8e Mon Sep 17 00:00:00 2001 From: Dominik Christ Date: Wed, 5 Aug 2015 15:58:15 +0100 Subject: [PATCH] Polished compile and package scripts --- Allwmake.mingw | 2 +- bin/createWindowsBinaryPackage | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Allwmake.mingw b/Allwmake.mingw index 99d83297c..97e1b5b79 100644 --- a/Allwmake.mingw +++ b/Allwmake.mingw @@ -72,7 +72,7 @@ cp -p $MINGW_HOME/bin/libgcc_s_seh-1.dll $FOAM_APPBIN cp -p $MINGW_HOME/bin/libstdc++-6.dll $FOAM_APPBIN cp -p $MINGW_HOME/bin/libwinpthread-1.dll $FOAM_APPBIN echo "Creating release package ... (see `pwd`/createWindowsBinaryPackage.log)" -./bin/createWindowsBinaryPackage > createWindowsBinaryPackage.log 1>&1 +./bin/createWindowsBinaryPackage > createWindowsBinaryPackage.log 2>&1 echo echo "All done!" diff --git a/bin/createWindowsBinaryPackage b/bin/createWindowsBinaryPackage index 477045629..99142851f 100755 --- a/bin/createWindowsBinaryPackage +++ b/bin/createWindowsBinaryPackage @@ -38,9 +38,9 @@ cd ${0%/*} || exit 1 # run from this directory echo echo "=========== FOAM-EXTEND WINDOWS STAND-ALONE PACKAGE CREATION SCRIPT ===========" -if [ "$PWD" != "$WM_PROJECT_DIR" ] +if [ "$PWD" != "$WM_PROJECT_DIR/bin" ] then - echo "Error: Current directory is not \$WM_PROJECT_DIR" + echo "Error: Current directory is not \$WM_PROJECT_DIR/bin" echo " The environment variable are not consistent with the installation." echo " Check the OpenFOAM entries in your dot-files and source them." exit 1