source: scripts/get_waf.sh @ 0fbbb067

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 0fbbb067 was bb07c7e, checked in by Paul Brossier <piem@piem.org>, 7 years ago

scripts/get_waf.sh: do not add syms

  • Property mode set to 100755
File size: 583 bytes
Line 
1#! /bin/bash
2
3set -e
4set -x
5
6WAFVERSION=2.0.1
7WAFTARBALL=waf-$WAFVERSION.tar.bz2
8WAFURL=https://waf.io/$WAFTARBALL
9
10WAFBUILDDIR=`mktemp -d`
11
12function cleanup () {
13  rm -rf $WAFBUILDDIR
14}
15
16trap cleanup SIGINT SIGTERM
17
18function buildwaf () {
19  pushd $WAFBUILDDIR
20
21  ( which wget > /dev/null && wget -qO $WAFTARBALL $WAFURL ) || ( which curl > /dev/null && curl $WAFURL > $WAFTARBALL )
22
23  tar xf $WAFTARBALL
24  pushd waf-$WAFVERSION
25  NOCLIMB=1 python waf-light --tools=c_emscripten $*
26
27  popd
28  popd
29
30  cp -prv $WAFBUILDDIR/waf-$WAFVERSION/waf $PWD
31
32  chmod +x waf
33}
34
35buildwaf
36
37cleanup
Note: See TracBrowser for help on using the repository browser.