From koffice-devel Thu Feb 17 23:07:46 2005 From: David Faure Date: Thu, 17 Feb 2005 23:07:46 +0000 To: koffice-devel Subject: www/areas/koffice/developer/fileformat Message-Id: <20050217230746.A99B01BBE5 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=110868168325806 CVS commit by faure: make oasisfilecheck work with relative paths too CCMAIL: koffice-devel@kde.org M +5 -3 validate.php 1.10 --- www/areas/koffice/developer/fileformat/validate.php #1.9:1.10 @@ -50,9 +50,11 @@

    #!/bin/sh
+   input="$1"
+   echo "$input" | grep -v '^/' >/dev/null 2>&1 && input="$PWD/$input"
    tmpdir=/tmp/oasistmp
-   rm -rf $tmpdir ; mkdir $tmpdir && cd $tmpdir || exit 1
-   unzip -o $1 || exit 1
+   rm -rf $tmpdir ; mkdir $tmpdir && cd $tmpdir || exit 1
+   unzip -o $input || exit 1
    for f in content.xml styles.xml meta.xml settings.xml; do
-     echo "Checking $f..." ; oasislint $f && echo "Checking $f strict..." && oasislint-strict $f
+     echo "Checking $f..." ; oasislint $f && echo "Checking $f strict..." && oasislint-strict $f
    done
    
_______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel