git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@53 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2006-10-04 19:07:06 +00:00
parent 56412aa8c0
commit ef100f4f27
2 changed files with 17 additions and 6 deletions

22
all.sh
View File

@ -1,14 +1,24 @@
#!/bin/sh #!/bin/sh
# for one XEP, generates HTML file and IETF reference, then copies XML file # for all XEPs, generates HTML files and IETF-style reference, then copies XML file
# usage: ./gen.sh xxxx # usage: ./all.sh
# (where xxxx is the 4-digit XEP number)
xeppath=/var/www/stage.xmpp.org/extensions xeppath=/var/www/stage.xmpp.org/extensions
xsltproc xep.xsl xep-$1.xml > $xeppath/jep-$1.html ls xep-0*.xml > tmp.txt
xsltproc ref.xsl xep-$1.xml > $xeppath/refs/reference.JSF.XEP-$1.xml sed s/xep-\(.*\).xml/\1/ tmp.txt > nums.txt
rm tmp.txt
cp xep-$1.xml $xeppath/ while read f
do
xsltproc xep.xsl xep-$f.xml > $xeppath/xep-$f.html
xsltproc ref.xsl xep-$f.xml > $xeppath/refs/reference.JSF.XEP-$f.xml
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
cp *.dtd $xeppath/ cp *.dtd $xeppath/
cp *.ent $xeppath/ cp *.ent $xeppath/

1
gen.sh
View File

@ -7,6 +7,7 @@ xeppath=/var/www/stage.xmpp.org/extensions
xsltproc xep.xsl xep-$1.xml > $xeppath/jep-$1.html xsltproc xep.xsl xep-$1.xml > $xeppath/jep-$1.html
xsltproc ref.xsl xep-$1.xml > $xeppath/refs/reference.JSF.XEP-$1.xml xsltproc ref.xsl xep-$1.xml > $xeppath/refs/reference.JSF.XEP-$1.xml
cp xep-$1.xml $xeppath/ cp xep-$1.xml $xeppath/
# END # END