1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

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

This commit is contained in:
Ruben S. Montero 2018-05-10 11:45:19 +02:00
parent 623bfc67ef
commit 283520bfaf

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
}
#-------------------------------------------------------------------------------