Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 138 → Rev 139

/shark/trunk/distrib/mdistrib
0,0 → 1,64
#! /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 -b http://shark.sssup.it/distrib/sharkuti.zip -O ./dosshark/sharkuti.zip
#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
 
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property