Subversion Repositories wimsdev

Rev

Rev 778 | Rev 3860 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#! /bin/sh
#
#       This script indexes shtooka resources which are in data/shtooka directories
#       It should be run each time a shtooka package is added or modified.
# use index.xml in the future
# Bernadette Perrin-Riou
cd `dirname $0`
file=index.xml;
#
list=`ls -d */$file | sed 's/\/index\.xml$//' | sort` ;
for i in $list ; do 
   echo "reading $i" ;
   cd $i ; ../swac.pl --prefix=$i;
   cd .. ; 
done;
list_index=`ls -d */$file` ; echo $list_index ; 
list_lang=`grep --no-filename swac_lang=* $list_index | sed 's/swac_lang=//' | sed 's/\"//g' | sort -u`;
for j in $list_lang ; do 
   echo "index $j" ; 
   ./swac.pl --lang=$j;
done;