Subversion Repositories wimsdev

Rev

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

#! /bin/sh
version=1.0

##this script transfer swac-shtooka ressources at the good place
##author Bernadette Perrin-Riou

adresse=download.shtooka.net
 
cd `dirname $0`/..
wimshome=`pwd`
swac=$wimshome/public_html/scripts/data/swac
cd $swac ; 
packs=`ls -d */`
echo "$version" > version.tmp;
for i in $packs; do
  u=`basename $i` ;
  j=${u}_mp3 ;
  wget http://$adresse/$j.tar; echo "wget $adresse/$u.tar" ;
  tar xf $u.tar;
  mkdir -p $swac/$u; cd $j ; cp -r * $swac/$u/ ; cd $swac ; rm $j.tar ; rm -r $j;
  echo "$u" >> version.tmp ;
done ;

cd $swac ; cp version.tmp version ; rm version.tmp; 
./mkindex ;