mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-25 02:32:18 -05:00
cb09dd9247
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@68 4b5297f7-1745-476d-ba37-a9c6900126ab
32 lines
698 B
Bash
Executable File
32 lines
698 B
Bash
Executable File
#!/bin/sh
|
|
# for all XEPs, generates HTML files and IETF-style reference, then copies XML file
|
|
# usage: ./all.sh
|
|
|
|
xeppath=/var/www/xmpp.org/extensions
|
|
|
|
ls xep-0*.xml > tmp1.txt
|
|
sed s/^xep-// tmp1.txt > tmp2.txt
|
|
sed s/.xml$// tmp2.txt > nums.txt
|
|
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
|
|
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 *.ent $xeppath/
|
|
cp *.gif $xeppath/
|
|
cp *.html $xeppath/
|
|
cp *.shtml $xeppath/
|
|
cp *.xsd $xeppath/
|
|
|
|
# END
|