scripts/get_waf.sh: add script to fetch waf
authorPaul Brossier <piem@piem.org>
Tue, 14 Mar 2017 02:54:06 +0000 (03:54 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 14 Mar 2017 02:54:06 +0000 (03:54 +0100)
scripts/get_waf.sh [new file with mode: 0755]

diff --git a/scripts/get_waf.sh b/scripts/get_waf.sh
new file mode 100755 (executable)
index 0000000..db8d5fa
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+set -e
+set -x
+
+WAFURL=https://waf.io/waf-1.9.6
+
+( which wget > /dev/null && wget -qO waf $WAFURL ) || ( which curl > /dev/null && curl $WAFURL > waf )
+
+chmod +x waf
+