summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-05-07 09:56:02 +0200
committerDanny Baumann <dannybaumann@web.de>2007-05-07 09:56:02 +0200
commitf27aae4006dc1e4409ba9bbb7d227b05be29fbbd (patch)
tree2600f887cb039947a89675abb70b9b72e229ca5f /src
parent2b4ccc7ff27c0dd59ff7b1b8f7c9af6ab227c529 (diff)
downloadbcop-f27aae4006dc1e4409ba9bbb7d227b05be29fbbd.tar.gz
bcop-f27aae4006dc1e4409ba9bbb7d227b05be29fbbd.tar.bz2
Check for stylesheet existance before doing any work.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bcop.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bcop.in b/src/bcop.in
index b4f982a..be7771c 100755
--- a/src/bcop.in
+++ b/src/bcop.in
@@ -53,6 +53,11 @@ do
shift
done
+if [ ! -e $xsltdir/bcop.xslt ]; then
+ echo -n "The needed stylesheet $xsltdir/bcop.xslt was not found. Aborting..."
+ exit
+fi
+
xmlfile="$1"
if [ -e $xmlfile ]; then
@@ -62,4 +67,4 @@ if [ -e $xmlfile ]; then
if [ -n "$srcfile" ]; then
xsltproc --stringparam "source" "true" $xsltdir/bcop.xslt $xmlfile > "$srcfile"
fi
-fi \ No newline at end of file
+fi