aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMaZderMind2014-11-10 01:07:11 +0100
committerMaZderMind2014-11-10 01:07:11 +0100
commit2ad3b1c61c4d2f11ad57840a091e4db397689405 (patch)
tree4d6b5e94052adbe0d2077cd9c58675ac47ddd6f9 /build.sh
parent3265e2c34059e7181ee792cc8a2c3418d5eb2687 (diff)
basic setup for dynamic program teasers on the startpage
Diffstat (limited to '')
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index f85dffe..7382d66 100755
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+
+LOCAL_SERVER='http://localhost/~peter/voc-frontends/31c3/'
+
echo "building scss"
scss assets/css/src/lustige-styles.scss assets/css/lustige-styles.css
@@ -16,8 +19,9 @@ wget \
--recursive \
--no-parent \
--page-requisites \
- http://localhost/~peter/voc-frontends/31c3/ \
- http://localhost/~peter/voc-frontends/31c3/404.html
+ $LOCAL_SERVER \
+ $LOCAL_SERVER/404.html
+ $LOCAL_SERVER/program.json
echo "setting <base />-tag"
find build -name "*.html" -print0 | xargs -0 -exec sed -i 's~<base href="[^"]*" />~<base href="/" />~g';