Skip to content

Commit 6373719

Browse files
committed
using "$@" instead of $* to preserve quoted arguments to petsc
also allow PETSC_BRANCH as optional argument
1 parent a30bdd6 commit 6373719

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

installxSDK.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ if [ ! -d xsdk ]; then
5454
fi
5555
cd xsdk
5656

57-
#PETSC_BRANCH='barry/downloads'
58-
# Get PETSc
57+
if [ "${PETSC_BRANCH}x" = "x" ]; then
58+
PETSC_BRANCH="master"
59+
fi
60+
5961
if [ ! -d petsc ]; then
6062
if [ "${PACKAGEDIR}" != "0" ]; then
6163
if [ ! -f ${PACKAGEDIR}/petsc.tar.gz ]; then
@@ -87,15 +89,16 @@ else
8789
if [ "${WITHGIT}" != "0" ]; then
8890
cd petsc
8991
git fetch
90-
#git checkout $PETSC_BRANCH
92+
git checkout $PETSC_BRANCH
9193
git pull
9294
fi
9395
fi
9496

9597

9698
# Install the packages
9799
export PETSC_DIR=`pwd`
98-
./configure --download-xsdk $*
100+
echo "$@"
101+
./configure --download-xsdk "$@"
99102
if [ "$?" = "0" ]; then
100103
if [ "${SKIPMAKE}" = "0" ]; then
101104
make

0 commit comments

Comments
 (0)