From 53a9bbf58a18b69a46115bd8e66a675313c68135 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Sun, 9 Nov 2014 23:47:50 +0100
Subject: refine build step
---
build.sh | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
(limited to 'build.sh')
diff --git a/build.sh b/build.sh
index df06791..f85dffe 100755
--- a/build.sh
+++ b/build.sh
@@ -9,7 +9,6 @@ echo "spidering page"
mkdir -p build
wget \
--no-verbose \
- --no-clobber \
--no-host-directories \
--cut-dirs=3 \
--directory-prefix=build \
@@ -17,5 +16,15 @@ wget \
--recursive \
--no-parent \
--page-requisites \
- --convert-links \
- http://localhost/~peter/voc-frontends/31c3/
+ http://localhost/~peter/voc-frontends/31c3/ \
+ http://localhost/~peter/voc-frontends/31c3/404.html
+
+echo "setting -tag"
+find build -name "*.html" -print0 | xargs -0 -exec sed -i 's~~~g';
+
+echo "inserting hidden compiletime marker"
+find build -name "*.html" -print0 | xargs -0 -exec sed -i "s~~\n~g";
+
+
+echo "copying .htaccess"
+cp build.htaccess build/.htaccess
--
cgit v1.2.3