Got rid of janky build.sh script. Now uses a bunch of janky scripts and a make file - because that is bound to be easier to maintain.
15 lines
552 B
Bash
Executable file
15 lines
552 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
lastUpdate="$(date --utc "+%a, %d %b %Y %H:%M:%S") UT"
|
|
echo "<?xml version='1.0' encoding='UTF-8' ?>
|
|
<rss xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" xmlns:atom=\"http://www.w3.org/2005/Atom\" version=\"2.0\">
|
|
<channel>
|
|
<title><![CDATA[Jonathan Hodgson]]></title>
|
|
<description><![CDATA[Jonathan Hodgson's Blog]]></description>
|
|
<link>https://jonathanh.co.uk</link>
|
|
<lastBuildDate>$lastUpdate</lastBuildDate>"
|
|
|
|
for i in "$@"; do
|
|
cat "$i"
|
|
done
|
|
echo "</channel></rss>"
|