2006-10-02 18:22:13 -04:00
|
|
|
#!/bin/sh
|
2006-10-04 15:07:06 -04:00
|
|
|
# for all XEPs, generates HTML files and IETF-style reference, then copies XML file
|
|
|
|
# usage: ./all.sh
|
2006-10-02 18:22:13 -04:00
|
|
|
|
2007-01-15 14:11:44 -05:00
|
|
|
# STAGE
|
|
|
|
#xeppath=/var/www/stage.xmpp.org/extensions
|
|
|
|
# PRODUCTION
|
2006-10-04 17:52:45 -04:00
|
|
|
xeppath=/var/www/xmpp.org/extensions
|
2006-10-02 18:22:13 -04:00
|
|
|
|
2006-10-04 15:42:19 -04:00
|
|
|
ls xep-0*.xml > tmp1.txt
|
|
|
|
sed s/^xep-// tmp1.txt > tmp2.txt
|
|
|
|
sed s/.xml$// tmp2.txt > nums.txt
|
|
|
|
rm tmp*.txt
|
2006-10-02 18:22:13 -04:00
|
|
|
|
2006-10-04 15:07:06 -04:00
|
|
|
while read f
|
|
|
|
do
|
|
|
|
xsltproc xep.xsl xep-$f.xml > $xeppath/xep-$f.html
|
2007-01-15 14:11:44 -05:00
|
|
|
xsltproc ref.xsl xep-$f.xml > $xeppath/refs/reference.XSF.XEP-$f.xml
|
2006-10-04 15:07:06 -04:00
|
|
|
cp xep-$f.xml $xeppath/
|
|
|
|
done < nums.txt
|
|
|
|
|
|
|
|
rm nums.txt
|
|
|
|
|
|
|
|
xsltproc xep.xsl xep-README.xml > $xeppath/README.html
|
|
|
|
xsltproc xep.xsl xep-template.xml > $xeppath/template.html
|
2006-10-02 18:22:13 -04:00
|
|
|
|
2006-10-04 14:40:38 -04:00
|
|
|
cp *.dtd $xeppath/
|
|
|
|
cp *.ent $xeppath/
|
|
|
|
cp *.gif $xeppath/
|
|
|
|
cp *.html $xeppath/
|
|
|
|
cp *.shtml $xeppath/
|
|
|
|
cp *.xsd $xeppath/
|
2006-10-02 18:22:13 -04:00
|
|
|
|
|
|
|
# END
|