blob: b9c9a3f926f693b29dfe8c66b839b8b75f529829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# POSIX sh, not bash!
die() {
set +x
echo "$*" 1>&2
exit 1
}
# export for debugging
[ "$DEBUG" == "1" ] && set -x
# go to volume
cd /repo
basedir=$PWD
# create output directory:
mkdir -p assets
# install grunt
npm install -g grunt-cli || die "FAIL:${PWD}: npm install -g grunt-cli"
# setup
for d in sources/css/bootstrap sources/css/tyrian . ; do
cd $basedir/$d && npm install || die "FAIL:${PWD}: npm install failed"
done
# do the build
cd $basedir && grunt || die "FAIL:${PWD}: grunt"
|