🛠️ exec

main
Dozens B. McCuzzins 2023-11-16 15:13:00 -07:00
parent 3efc55d7b9
commit 8cd4612ef2
1 changed files with 5 additions and 4 deletions

View File

@ -9,9 +9,10 @@ html:
# build rss feed from journal # build rss feed from journal
rss: rss:
#!/usr/bin/env sh #!/usr/bin/env sh
echo "<rss version=\"2.0\"><channel><title>piblog</title>" > www/feed.xml exec > wwww/feed.xml
echo "<link>http://tilde.town/~dozens/piblog/index.html</link><description>just a little log about my raspberry pi</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"http://tilde.town/~dozens/piblog/feed.xml\"/>" >> www/feed.xml echo "<rss version=\"2.0\"><channel><title>piblog</title>"
ed -s !'markdown src/piblog.md' << HEREDOC | recfmt -f templates/feeditem.template | m4 >> www/feed.xml echo "<link>http://tilde.town/~dozens/piblog/index.html</link><description>just a little log about my raspberry pi</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"http://tilde.town/~dozens/piblog/feed.xml\"/>"
ed -s !'markdown src/piblog.md' << HEREDOC | recfmt -f templates/feeditem.template | m4
/BEGIN/ka /BEGIN/ka
/END/kb /END/kb
1,'ad 1,'ad
@ -26,7 +27,7 @@ rss:
,w /dev/stdout ,w /dev/stdout
Q Q
HEREDOC HEREDOC
echo '</channel></rss>' >> www/feed.xml echo '</channel></rss>'
# watch for changes # watch for changes
watch: watch: