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