summaryrefslogtreecommitdiff
path: root/scripts/update.sh
blob: 22eca32515a2878af6780e6e460bb39a18733ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

ARCH=$1
mkdir new
for i in `ls -1 patterns/*.xml`; do 
    base=`basename $i`
    xsltproc --stringparam arch $ARCH  xsl/filter.xsl  $i >  new/$base
done
echo "<index>" > INDEX.xml;
for i in `ls -1 new/*.xml`; do echo "<file>$i</file>" >> INDEX.xml; done; 
echo "</index>" >> INDEX.xml
xsltproc xsl/merge.xsl INDEX.xml  > patterns.xml 
xsltproc xsl/comps.xsl patterns.xml > group.xml
rm -rf new