aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-08-30 16:58:07 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-08-30 16:58:07 +0200
commitd3f0841cfdd229ff16b8a230117737a435fc7a56 (patch)
tree37b2fc040f0a8b72cb0590a5fb1a035c8f6344cc /build.sh
parent12830ecc2770cf63042f35e208899efabff6fd44 (diff)
downloadsebastiano.tronto.net-d3f0841cfdd229ff16b8a230117737a435fc7a56.tar.gz
sebastiano.tronto.net-d3f0841cfdd229ff16b8a230117737a435fc7a56.zip
Remove 'hosted at'
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 59c0232..1cfcd1c 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3basedir="$(pwd)" 3basedir="$(pwd)"
4bottomtmp="$(mktemp)"
4 5
5recursivebuild() { 6recursivebuild() {
6 local destdir=$(echo "$1" | sed 's|^src|http|') 7 local destdir=$(echo "$1" | sed 's|^src|http|')
@@ -44,7 +45,7 @@ copyfile() {
44 mdpreprocess "$file" | \ 45 mdpreprocess "$file" | \
45 lowdown --html-no-skiphtml --html-no-escapehtml \ 46 lowdown --html-no-skiphtml --html-no-escapehtml \
46 >> "$ind" 47 >> "$ind"
47 cat bottom.html >> "$ind" 48 cat "$bottomtmp" >> "$ind"
48 ;; 49 ;;
49 noheadermd) 50 noheadermd)
50 t="$(markdowntitle "$file")" 51 t="$(markdowntitle "$file")"
@@ -55,7 +56,7 @@ copyfile() {
55 ;; 56 ;;
56 html) 57 html)
57 t="$(htmltitle "$file")" 58 t="$(htmltitle "$file")"
58 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" 59 cat top.html "$file" "$bottomtmp" | sed "s/TITLE/$t/" > "$ind"
59 ;; 60 ;;
60 raw) 61 raw)
61 namenoraw="$(basename "$file" | sed 's/\.raw$//')" 62 namenoraw="$(basename "$file" | sed 's/\.raw$//')"
@@ -118,7 +119,7 @@ makeblogindexandfeed() {
118 done 119 done
119 120
120 echo '</table>' >> "$bf" 121 echo '</table>' >> "$bf"
121 cat bottom.html >> "$bf" 122 cat "$bottomtmp" >> "$bf"
122 123
123 { echo ""; echo "</channel>"; echo "</rss>"; } >> "$ff" 124 { echo ""; echo "</channel>"; echo "</rss>"; } >> "$ff"
124} 125}
@@ -164,5 +165,6 @@ month() {
164 esac 165 esac
165} 166}
166 167
168sed "s/LASTUPDATE/$(date +'%Y-%m-%d')/" <bottom.html >"$bottomtmp"
167makeblogindexandfeed 169makeblogindexandfeed
168recursivebuild src 170recursivebuild src

Generated with cgit - Back to sebastiano.tronto.net