Subversion Repositories shark

Rev

Rev 139 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
139 trimarchi 1
#! /bin/bash
2
#
3
# makdistrib        make shark distrib
4
#
5
 
6
# Source function library.
7
. /etc/init.d/functions
8
getcvs() {
9
 
10
  echo -ne $"\nGet cvs "
11
  $ret cvs checkout $1
12
  return $ret
13
 
14
 
15
 
16
}
17
 
18
sharkpass=""
19
demospass=""
20
echo -n $"Give date of distrib "
21
read date
22
echo -ne "\nsource-$date"
23
path="source-$date"
24
mkdir $path
25
cd $path
26
 
27
$sharkpass getcvs $"shark"
28
$demospass getcvs $"demos"
29
 
30
mkdir tbz2
31
mkdir tgz
32
mkdir zip
33
mkdir dosshark
34
 
35
filenameshark="shark-$date"
36
filenamedemos="demos-$date"
37
 
38
#create the shark zip archive
39
zip -r "./zip/$filenameshark.zip" shark
40
zip -r "./zip/$filenamedemos.zip" demos
41
#cpopy the shark zip archive in dosshark
42
cp "./zip/$filenameshark.zip" ./dosshark/
43
cp "./zip/$filenamedemos.zip" ./dosshark/
44
#get the other shark component for dos
148 trimarchi 45
wget http://shark.sssup.it/distrib/sharkuti.zip -O ./dosshark/sharkuti.zip
46
wget http://shark.sssup.it/utils/unzip.exe -O ./dosshark/unzip.exe
47
cp ./distrib/dos/myfilter.* ./dosshark/
139 trimarchi 48
#create the dosshark file
49
zip -r "./dosshark/dosshark.zip" dosshark
50
 
51
#create the tbz2 format
52
tar -cf ./tgz/$filenameshark shark
53
cp ./tgz/$filenameshark ./tbz2/$filenameshark
54
#create the tgz format
55
gzip -S .tgz ./tgz/$filenameshark
56
tar -cf ./tgz/$filenamedemos demos
57
 
58
#create the tbz2 format
59
cp ./tgz/$filenamedemos ./tbz2/$filenamedemos
60
gzip -S .tgz ./tgz/$filenamedemos
61
bzip2 ./tbz2/$filenameshark
62
bzip2 ./tbz2/$filenamedemos
63
 
64
 
65
exit 0
66