summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Zeitlin <vz-swig@zeitlins.org>2013-01-25 19:18:12 +0100
committerVadim Zeitlin <vz-swig@zeitlins.org>2013-01-25 19:18:12 +0100
commit38d454a1022f65d76e292fd13d699da896c0c2cf (patch)
tree0996dc9006b052a4206c7c58e702bcefff3dfbde
parent88a64208ae4cd6e16850d3c37bce6e940d6625bc (diff)
downloadswig-38d454a1022f65d76e292fd13d699da896c0c2cf.tar.gz
Fix MAKE variable expansion in pcre-build.sh.
Correct the syntax used in 0e32be2, it's ${var:-fallback}.
-rwxr-xr-xTools/pcre-build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/pcre-build.sh b/Tools/pcre-build.sh
index 4af7deca3..92f645da2 100755
--- a/Tools/pcre-build.sh
+++ b/Tools/pcre-build.sh
@@ -48,8 +48,8 @@ echo "Configuring PCRE in directory: pcre"
mv $pcre_dir pcre || bail "Could not create pcre directory"
cd pcre && ./configure --prefix=$pcre_install_dir --disable-shared $* || bail "PCRE configure failed"
echo "Building PCRE..."
-${MAKE:make} -s || bail "Could not build PCRE"
+${MAKE:-make} -s || bail "Could not build PCRE"
echo "Installing PCRE locally to $pcre_install_dir..."
-${MAKE:make} -s install || bail "Could not install PCRE"
+${MAKE:-make} -s install || bail "Could not install PCRE"
echo ""
echo "The SWIG configure script can now be run, whereupon PCRE will automatically be detected and used from $pcre_install_dir/bin/pcre-config."