Subversion Repositories shark

Rev

Rev 139 | 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 checkout $1
  return $ret
  
  

}
 
sharkpass=""
demospass=""
echo -n $"Give date 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
zip -r "./zip/$filenameshark.zip" shark
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 ./distrib/dos/myfilter.* ./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 -S .tgz ./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