Merge branch '2836-only-clean-gitter.im-orphaned-rooms' into 'develop'
[gitter.git] / build-scripts / make-transloadit
blob3d8a0d2cafbb02305a75415cbc4ae76581393600
1 #!/bin/bash
3 set -x
4 set -e
6 git clone git@github.com:transloadit/jquery-sdk.git
7 cd jquery-sdk
8 git checkout v2.7.1
9 grep -v 'call compile_js' Makefile > Makefile.tmp
10 mv Makefile.tmp Makefile
11 rm js/dep/json2.js
12 make
13 (echo "
14 var jQuery = require('jquery');
15 "; cat build/jquery.transloadit2-latest.js) | sed -e 's/window\.jQuery/jQuery/' > build/jquery.transloadit2-latest.js.tmp
16 cd ..
17 cp jquery-sdk/build/jquery.transloadit2-latest.js.tmp ../public/repo/transloadit/jquery.transloadit2-v2-latest.js
18 rm -rf jquery-sdk