diff options
Diffstat (limited to 'rss/genrss')
-rwxr-xr-x | rss/genrss | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/rss/genrss b/rss/genrss deleted file mode 100755 index 9c3c19c..0000000 --- a/rss/genrss +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -cd $(dirname $0) - -alias xml="xmlstarlet" - -cp base.xml atom.xml -for file in ../out/post/*; do - base=$(basename "$file" .html) - - xml ed -L \ - -s '/rss/channel' -t elem -n item \ - --var newitem '$prev' \ - -s '$newitem' -t elem -n title -v "$(../scripts/meta title "../posts/${base}.md" | jq --raw-output)" \ - -s '$newitem' -t elem -n guid -v "$base" \ - -s '$newitem' -t elem -n link -v "/post/$base" \ - -s '$newitem' -t elem -n pubDate -v "$(../scripts/meta date "../posts/${base}.md" | jq --raw-output)" \ - -s '$newitem' -t elem -n description -v "$(pup -f "../out/post/${base}.html" .contentWrapper)" \ - atom.xml -done - -mv atom.xml ../out/ - |