You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
483 B
27 lines
483 B
9 years ago
|
#!/bin/bash
|
||
|
|
||
9 years ago
|
set -e
|
||
|
set -x
|
||
|
|
||
9 years ago
|
SRCDIR=html_src
|
||
|
BLDDIR=html
|
||
|
|
||
|
rm -rf "$BLDDIR/pages"
|
||
|
rm -rf "$BLDDIR/js"
|
||
|
rm -rf "$BLDDIR/css"
|
||
|
|
||
|
cd "$SRCDIR"
|
||
9 years ago
|
gulp --production
|
||
9 years ago
|
cd ..
|
||
|
|
||
|
cp -R "$SRCDIR/css" "$BLDDIR"
|
||
|
cp -R "$SRCDIR/js" "$BLDDIR"
|
||
|
|
||
|
find "$BLDDIR" -name "*.map" -delete
|
||
|
|
||
9 years ago
|
mkdir -p "$BLDDIR/pages"
|
||
|
|
||
9 years ago
|
php "$SRCDIR/home.php" > "$BLDDIR/pages/home.tpl"
|
||
|
php "$SRCDIR/wifi.php" > "$BLDDIR/pages/wifi.tpl"
|
||
9 years ago
|
php "$SRCDIR/waveform.php" > "$BLDDIR/pages/wfm.html" # no substitutions, .html allows to gzip it.
|