F #1692: Fixes for build script. Patches, error control, and mv's

This commit is contained in:
Ruben S. Montero committed 2018-05-10 12:45:32 +02:00
1 parent 623bfc67ef
commit 283520bfaf
1 file changed
+11 -8
+11 -8
View File
@@ -1,5 +1,7 @@
#!/bin/bash
set -e
#-------------------------------------------------------------------------------
usage() {
echo
@@ -28,14 +30,6 @@ install_patch() {
bower install --force --allow-root --config.interactive=false
grunt --gruntfile ./Gruntfile.js sass
grunt --gruntfile ./Gruntfile.js requirejs
mv dist/main.js dist/main-dist.js
mv dist/main.js.map dist/main-dist.js.map
PATCH_DIR="./patches/"
for i in `ls ${PATCH_DIR}` ; do
@@ -43,6 +37,15 @@ install_patch() {
patch -p1 <"${PATCH_DIR}/$i"
fi
done
grunt --gruntfile ./Gruntfile.js sass
grunt --gruntfile ./Gruntfile.js requirejs
mv -f dist/main.js dist/main-dist.js
mv -f dist/main.js.map dist/main-dist.js.map
}
#-------------------------------------------------------------------------------