aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-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';