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.
21 lines
351 B
21 lines
351 B
#!/bin/bash
|
|
|
|
SRCDIR=html_src
|
|
BLDDIR=html
|
|
|
|
rm -rf "$BLDDIR/pages"
|
|
rm -rf "$BLDDIR/js"
|
|
rm -rf "$BLDDIR/css"
|
|
|
|
cd "$SRCDIR"
|
|
gulp
|
|
cd ..
|
|
|
|
cp -R "$SRCDIR/css" "$BLDDIR"
|
|
cp -R "$SRCDIR/images" "$BLDDIR"
|
|
cp -R "$SRCDIR/js" "$BLDDIR"
|
|
|
|
find "$BLDDIR" -name "*.map" -delete
|
|
|
|
php "$SRCDIR/home.php" > "$BLDDIR/home.tpl"
|
|
php "$SRCDIR/wifi.php" > "$BLDDIR/wifi.tpl"
|
|
|