itsb/feedgen.sh

15 lines
518 B
Bash
Raw Normal View History

2019-12-14 10:01:03 +00:00
#!/bin/bash
2020-01-03 14:21:22 +00:00
[ -z "$DIR" ] && DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
2021-03-21 14:48:57 +00:00
tmpfile=$(mktemp /tmp/itsb.XXXXXXXXXX)
trap "rm \"$tmpfile\"" EXIT
xsltproc "$DIR/xslt/itsb.xsl" "$DIR/itsb.xml" > "$tmpfile"
xsltproc "$DIR/xslt/feedgen.xsl" "$tmpfile" | DIR="$DIR" bash -s -- "$@"
xsltproc "$DIR/xslt/opml.xsl" "$tmpfile" > "$DIR/feeds.opml"
2022-05-25 16:04:02 +00:00
xsltproc "$DIR/xslt/ocs.xsl" "$tmpfile" > "$DIR/feeds.ocs"
2021-03-21 14:48:57 +00:00
xsltproc "$DIR/xslt/html.xsl" "$tmpfile" > "$DIR/index.html"
2021-03-22 18:31:08 +00:00
"$DIR/bin/cdfmerge" < "$tmpfile"