X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=etc%2Fxsl%2Ftest_xsl.sh;h=ec3dce9acf00bc3e157349307b1f422d47a026d7;hb=60656b7d48846136f290dfb0c8629f039cba7285;hp=cd1a6baa6f6388cbd15c43ef5c89099294900239;hpb=54ff6d201b630b3af6211057e392417e40f3c3ea;p=pazpar2-moved-to-github.git diff --git a/etc/xsl/test_xsl.sh b/etc/xsl/test_xsl.sh index cd1a6ba..ec3dce9 100755 --- a/etc/xsl/test_xsl.sh +++ b/etc/xsl/test_xsl.sh @@ -1,4 +1,9 @@ #!/bin/sh +v=`xsltproc --version|head -1|awk '{print $5}'` +if test $v -lt 10124; then + echo "libxslt is version $v. Skipping test" + exit 0 +fi res=0 for x in *.xsl; do t=`basename $x .xsl` @@ -8,10 +13,11 @@ for x in *.xsl; do echo "$t" for m in ${t}?.xml; do b=`basename $m .xml` + opt=`grep 'xsltproc:' $m|cut -d: -f2|cut -d- -f1|tr '#' '-'` l=$b.log.xml r=$b.res.xml d=$b.dif - xsltproc $x $m >$l + xsltproc $opt $x $m >$l if test -f $r; then if diff $l $r >$d; then rm $d