add test for dependency

This commit is contained in:
vv01f 2019-06-13 04:09:43 +02:00
parent d761ff6e91
commit 7a2c3c158c
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 5 additions and 0 deletions

5
gen.sh
View File

@ -1,4 +1,9 @@
#!/usr/bin/env sh
which xsltproc >/dev/null
test $? -eq 0 || {
echo "tool missing: xsltproc"
exit 1
}
test $# -eq 0 && {
xsltproc --encoding utf-8 -o ds-feed.xml rss.xsl data.xml
xsltproc --encoding iso-8859-1 -o download.html download.xsl data.xml