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
|
|
|
|
2008-04-22 12:37:14 -04:00
|
|
|
## LICENSE ##
|
|
|
|
#
|
2013-01-03 21:32:51 -05:00
|
|
|
# Copyright (c) 1999 - 2013 XMPP Standards Foundation
|
2008-04-22 12:37:14 -04:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
# THE SOFTWARE.
|
|
|
|
#
|
|
|
|
## END LICENSE ##
|
|
|
|
|
2008-09-06 22:10:19 -04:00
|
|
|
xeppath=/var/www/vhosts/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
|
2008-08-08 22:28:00 -04:00
|
|
|
xsltproc examples.xsl xep-$f.xml > $xeppath/examples/$f.xml
|
2006-10-04 15:07:06 -04:00
|
|
|
cp xep-$f.xml $xeppath/
|
2013-01-03 21:32:51 -05:00
|
|
|
./gen.py $f
|
2006-10-04 15:07:06 -04:00
|
|
|
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 *.shtml $xeppath/
|
|
|
|
cp *.xsd $xeppath/
|
2006-10-02 18:22:13 -04:00
|
|
|
|
|
|
|
# END
|