summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-07-07 19:19:31 +0000
committerDavid Robillard <d@drobilla.net>2011-07-07 19:19:31 +0000
commitef01c43f904ecf8977ab4540239e7b3ea2666285 (patch)
treead507bec72c19d999e22e6431ad6d4410c2e02c6
parentc52b989a71154faa6e4e0ac7b3be4e88459f9264 (diff)
downloadautowaf-ef01c43f904ecf8977ab4540239e7b3ea2666285.tar.gz
autowaf-ef01c43f904ecf8977ab4540239e7b3ea2666285.tar.bz2
autowaf-ef01c43f904ecf8977ab4540239e7b3ea2666285.zip
Eliminate need to modify build_custom_waf.sh in order to use it
git-svn-id: http://svn.drobilla.net/autowaf@48 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa
-rw-r--r--build_custom_waf.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build_custom_waf.sh b/build_custom_waf.sh
index c99a256..69c6b97 100644
--- a/build_custom_waf.sh
+++ b/build_custom_waf.sh
@@ -2,4 +2,11 @@
# Run this script from the waf source directory to build a custom waf script
# which includes autowaf (and the other listed tools)
-./waf-light -v --make-waf --tools=doxygen,swig,/path/to/autowaf/autowaf.py --prelude=''
+if [ $# != 1 ]; then
+ echo "Error: Path to autowaf.py must be passed as only argument"
+ exit 1
+fi
+
+autowaf_py=$1
+
+./waf-light -v --make-waf --tools=doxygen,swig,$autowaf_py --prelude=''