Changeset e561ca7
- Timestamp:
- Sep 18, 2018, 1:41:51 AM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- b3146df
- Parents:
- 3a8f0bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/get_waf.sh
r3a8f0bf re561ca7 2 2 3 3 set -e 4 set -x4 #set -x 5 5 6 6 WAFVERSION=2.0.11 7 7 WAFTARBALL=waf-$WAFVERSION.tar.bz2 8 8 WAFURL=https://waf.io/$WAFTARBALL 9 WAFUPSTREAMKEY=https://gitlab.com/ita1024/waf/raw/master/utils/pubkey.asc 9 10 10 11 WAFBUILDDIR=`mktemp -d` … … 16 17 trap cleanup SIGINT SIGTERM 17 18 19 function download () { 20 ( [[ -n `which wget` ]] && wget -qO $1 $2 ) || ( [[ -n `which curl` ]] && curl -so $1 $2 ) 21 } 22 23 function checkwaf () { 24 download $WAFTARBALL.asc $WAFURL.asc 25 if [[ -z `which gpg` ]] 26 then 27 echo "Warning: gpg not found, not verifying signature for $WAFTARBALL" 28 else 29 download - $WAFUPSTREAMKEY | gpg --import 30 gpg --verify $WAFTARBALL.asc || exit 1 31 fi 32 } 33 34 function fetchwaf () { 35 download $WAFTARBALL $WAFURL 36 checkwaf 37 } 38 18 39 function buildwaf () { 19 pushd $WAFBUILDDIR20 21 ( which wget > /dev/null && wget -qO $WAFTARBALL $WAFURL ) || ( which curl > /dev/null && curl $WAFURL > $WAFTARBALL )22 23 40 tar xf $WAFTARBALL 24 41 pushd waf-$WAFVERSION 25 42 NOCLIMB=1 python waf-light --tools=c_emscripten $* 26 27 43 popd 28 popd29 30 cp -prv $WAFBUILDDIR/waf-$WAFVERSION/waf $PWD31 32 chmod +x waf33 44 } 34 45 46 pushd $WAFBUILDDIR 47 fetchwaf 35 48 buildwaf 49 popd 50 51 cp -prv $WAFBUILDDIR/waf-$WAFVERSION/waf $PWD 52 chmod +x waf 36 53 37 54 cleanup
Note: See TracChangeset
for help on using the changeset viewer.