summaryrefslogtreecommitdiff
path: root/html/gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'html/gen.sh')
-rwxr-xr-xhtml/gen.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/html/gen.sh b/html/gen.sh
index 03ae570..ad362c7 100755
--- a/html/gen.sh
+++ b/html/gen.sh
@@ -26,13 +26,14 @@ md2ht() {
} > "$dst"
}
-md2ht index.md index.html
+md2ht index.md zisp/index.html
+cp style.css zisp/
for file in ../notes/*.md
do
name=${file#../notes/}
name=${name%.md}
- md2ht "$file" "notes/$name.html"
+ md2ht "$file" "zisp/notes/$name.html"
done
shopt -s globstar
@@ -43,17 +44,17 @@ do
name=${name%.md}
dir=${file#../}
dir=${dir%/*}
- mkdir -p "$dir"
- md2ht "$file" "docs/$name.html"
+ mkdir -p "zisp/$dir"
+ md2ht "$file" "zisp/docs/$name.html"
done
for file in ../docs/**/*.txt
do
dir=${file#../}
dir=${dir%/*}
- mkdir -p "$dir"
- dest=docs/${file#../docs/}
+ mkdir -p "zisp/$dir"
+ dest=zisp/docs/${file#../docs/}
cp "$file" "$dest"
done
-rsync -a ./ tk:/var/www/html/zisp
+rsync -a zisp tk:/var/www/html