cvs: php-gtk-doc /updater checkXml.sh
| From: | Christian Weiske | Date: | Tue, 10 Oct 2006 06:07:16 +0000 |
| Subject: | cvs: php-gtk-doc /updater checkXml.sh | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-2952@lists.php.net to get a copy of this message | ||
cweiske Tue Oct 10 06:07:16 2006 UTC
Added files:
/php-gtk-doc/updater checkXml.sh
Log:
Script for checking the manual's xml files well-formedness
http://cvs.php.net/viewvc.cgi/php-gtk-doc/updater/checkXml.sh?view=markup&rev=1.1
Index: php-gtk-doc/updater/checkXml.sh
+++ php-gtk-doc/updater/checkXml.sh
#!/bin/sh
#checks the manual xml files for well-formedness
#create some temporary directory to play with
tmp=${TMPDIR-/tmp}
tmp=$tmp/checkxml.$RANDOM.$$
(umask 077 && mkdir $tmp) || {
echo "Could not create temporary directory! Exiting." 1>&2
exit 1
}
cd "
dirname "$0""
echo "Copying manual files to tmp"
cp ../manual/en/reference/gtk/*.xml "$tmp/"
php "prepxpath.php" $tmp/*.xml
echo "Checking files for well-formedness"
for i in $tmp/*.xml
do xmllint $i --noout
done
echo "Cleaning up"
rm -r $tmp