Rev 148 | Rev 152 | Go to most recent revision | 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 " |
||
150 | trimarchi | 11 | $ret cvs -d :pserver:anonymous@feanor.sssup.it:/home/cvs/cvsroot checkout -P $1 |
139 | trimarchi | 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 |
||
150 | trimarchi | 47 | cp ./shark/distrib/dos/myfilter.c ./dosshark/ |
48 | cp ./shark/distrib/dos install.bat ./dosshark/ |
||
139 | trimarchi | 49 | #create the dosshark file |
50 | zip -r "./dosshark/dosshark.zip" dosshark |
||
51 | |||
52 | #create the tbz2 format |
||
53 | tar -cf ./tgz/$filenameshark shark |
||
54 | cp ./tgz/$filenameshark ./tbz2/$filenameshark |
||
55 | #create the tgz format |
||
56 | gzip -S .tgz ./tgz/$filenameshark |
||
57 | tar -cf ./tgz/$filenamedemos demos |
||
58 | |||
59 | #create the tbz2 format |
||
60 | cp ./tgz/$filenamedemos ./tbz2/$filenamedemos |
||
61 | gzip -S .tgz ./tgz/$filenamedemos |
||
62 | bzip2 ./tbz2/$filenameshark |
||
63 | bzip2 ./tbz2/$filenamedemos |
||
64 | |||
65 | |||
66 | exit 0 |
||
67 |