autogenerate include list for libraries

This commit is contained in:
Matias Alejo Garcia 2014-07-02 16:01:18 -03:00
commit 784f0695b7
3 changed files with 18 additions and 27 deletions

View file

@ -43,9 +43,13 @@ echo "${OpenColor}${Green}* Copying all chrome-extension files...${CloseColor}"
sed "s/APP_VERSION/$VERSION/g" manifest.json > $APPDIR/manifest.json
checkOK
INCLUDE=`cat ../include`
cd $BUILDDIR/../..
CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $APPDIR"
LIBS=`cat index.html |grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2|grep lib`
echo "LIBS $LIBS"
CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $LIBS $APPDIR"
echo $CMD
$CMD
checkOK

View file

@ -1,22 +1,10 @@
css font img js sound config.js version.js index.html popup.html
lib/mousetrap/mousetrap.min.js
js/shell.js
lib/angular/angular-csp.css
lib/angular/angular.min.js
lib/moment/min/moment.min.js
lib/angular-moment/angular-moment.js
lib/qrcode-generator/js/qrcode.js
lib/angular-qrcode/qrcode.js
lib/angular-route/angular-route.min.js
lib/angular-foundation/mm-foundation.min.js
lib/angular-foundation/mm-foundation-tpls.min.js
lib/peerjs/peer.min.js
lib/bitcore/browser/bundle.js
lib/crypto-js/rollups/sha256.js
lib/crypto-js/rollups/pbkdf2.js
lib/crypto-js/rollups/aes.js
lib/file-saver/FileSaver.js
lib/socket.io-client/socket.io.js
lib/sjcl.js
lib/ios-imagefile-megapixel/megapix-image.js
lib/qrcode-decoder-js/lib/qrcode-decoder.min.js
css
font
img
js
sound
config.js
version.js
index.html
popup.html
lib/angular/angular-csp.css