[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    www/areas/koffice/developer/fileformat
From:       David Faure <faure () kde ! org>
Date:       2005-02-17 23:07:46
Message-ID: 20050217230746.A99B01BBE5 () office ! kde ! org
[Download RAW message or body]

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 @@
    <pre><code>
    #!/bin/sh
+   input="$1"
+   echo "$input" | grep -v '^/' &gt;/dev/null 2&gt;&amp;1 &amp;&amp; \
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 &amp;&amp; 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 &amp;&amp; echo \
"Checking $f strict..." &amp;&amp; oasislint-strict $f  done
    </code></pre>


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic