itsb/feedgen.sh

6 lines
311 B
Bash
Executable File

#!/bin/bash
[ -z "$DIR" ] && DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
xsltproc "$DIR/xslt/feedgen.xsl" "$DIR/itsb.xml" | DIR="$DIR" bash -s -- "$@"
xsltproc "$DIR/xslt/opml.xsl" "$DIR/itsb.xml" > "$DIR/feeds.opml"
xsltproc "$DIR/xslt/html.xsl" "$DIR/itsb.xml" > "$DIR/index.html"