stage vs. production

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@333 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2007-01-15 19:11:44 +00:00
parent 29bee13867
commit 734732b3ba
2 changed files with 8 additions and 2 deletions

5
all.sh
View File

@ -2,6 +2,9 @@
# for all XEPs, generates HTML files and IETF-style reference, then copies XML file
# usage: ./all.sh
# STAGE
#xeppath=/var/www/stage.xmpp.org/extensions
# PRODUCTION
xeppath=/var/www/xmpp.org/extensions
ls xep-0*.xml > tmp1.txt
@ -12,7 +15,7 @@ rm tmp*.txt
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
xsltproc ref.xsl xep-$f.xml > $xeppath/refs/reference.XSF.XEP-$f.xml
cp xep-$f.xml $xeppath/
done < nums.txt

5
gen.sh
View File

@ -3,10 +3,13 @@
# usage: ./gen.sh xxxx
# (where xxxx is the 4-digit XEP number)
# STAGE
#xeppath=/var/www/stage.xmpp.org/extensions
# PRODUCTION
xeppath=/var/www/xmpp.org/extensions
xsltproc xep.xsl xep-$1.xml > $xeppath/xep-$1.html
xsltproc ref.xsl xep-$1.xml > $xeppath/refs/reference.JSF.XEP-$1.xml
xsltproc ref.xsl xep-$1.xml > $xeppath/refs/reference.XSF.XEP-$1.xml
cp xep-$1.xml $xeppath/