Subversion Repositories shark

Rev

Rev 152 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#! /bin/bash
#
# makdistrib        make shark distrib
#

# Source function library.
. /etc/init.d/functions
getcvs() {
   
  echo -ne $"\nGet cvs "
  $ret cvs -d :pserver:anonymous@feanor.sssup.it:/home/cvs/cvsroot export -r HEAD $1
  return $ret
  
  

}
 
sharkpass=""
demospass=""
echo -n $"Give date or revision of distrib "
read date
echo -ne "\nsource-$date"
path="source$date"
mkdir $path 
cd $path 

$sharkpass getcvs $"shark"
$demospass getcvs $"demos"

mkdir tbz2
mkdir tgz
mkdir zip
#mkdir dosshark

filenameshark="shark$date"
#filenamedemos="demos-$date"

#create the shark zip archive
mv demos ./shark
zip -r "./zip/$filenameshark.zip" shark
filenameshark="$filenameshark.tar"
#zip -r "./zip/$filenamedemos.zip" demos
#cpopy the shark zip archive in dosshark 
#cp "./zip/$filenameshark.zip" ./dosshark/
#cp "./zip/$filenamedemos.zip" ./dosshark/
#get the other shark component for dos
#wget http://shark.sssup.it/distrib/sharkuti.zip -O ./dosshark/sharkuti.zip
#wget http://shark.sssup.it/utils/unzip.exe -O ./dosshark/unzip.exe
#cp ./shark/distrib/dos/myfilter.c ./dosshark/
#cp ./shark/distrib/dos/install.bat ./dosshark/
#create the dosshark file
#zip -r "./dosshark/dosshark.zip" dosshark 

#create the tbz2 format
tar -cf ./tgz/$filenameshark shark
cp ./tgz/$filenameshark ./tbz2/$filenameshark
#create the tgz format 
gzip ./tgz/$filenameshark
#tar -cf ./tgz/$filenamedemos demos

#create the tbz2 format
#cp ./tgz/$filenamedemos ./tbz2/$filenamedemos
#gzip -S .tgz ./tgz/$filenamedemos
bzip2 ./tbz2/$filenameshark
#bzip2 ./tbz2/$filenamedemos


exit 0