aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b0ebde7..59c0232 100755
--- a/build.sh
+++ b/build.sh
@@ -15,7 +15,7 @@ recursivebuild() {
15 done 15 done
16} 16}
17 17
18# This function is currently unused, but we keep it in case we need to 18# This function is currently useless, but we keep it in case we need to
19# preprocess some m4 files. 19# preprocess some m4 files.
20mdpreprocess() { 20mdpreprocess() {
21 file="$1" 21 file="$1"
@@ -46,6 +46,13 @@ copyfile() {
46 >> "$ind" 46 >> "$ind"
47 cat bottom.html >> "$ind" 47 cat bottom.html >> "$ind"
48 ;; 48 ;;
49 noheadermd)
50 t="$(markdowntitle "$file")"
51 sed "s/TITLE/$t/" < top-nobar.html > "$ind"
52 mdpreprocess "$file" | \
53 lowdown --html-no-skiphtml --html-no-escapehtml \
54 >> "$ind"
55 ;;
49 html) 56 html)
50 t="$(htmltitle "$file")" 57 t="$(htmltitle "$file")"
51 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" 58 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind"

Generated with cgit - Back to sebastiano.tronto.net