Details | 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 |
||
45 | wget -b http://shark.sssup.it/distrib/sharkuti.zip -O ./dosshark/sharkuti.zip |
||
46 | #create the dosshark file |
||
47 | zip -r "./dosshark/dosshark.zip" dosshark |
||
48 | |||
49 | #create the tbz2 format |
||
50 | tar -cf ./tgz/$filenameshark shark |
||
51 | cp ./tgz/$filenameshark ./tbz2/$filenameshark |
||
52 | #create the tgz format |
||
53 | gzip -S .tgz ./tgz/$filenameshark |
||
54 | tar -cf ./tgz/$filenamedemos demos |
||
55 | |||
56 | #create the tbz2 format |
||
57 | cp ./tgz/$filenamedemos ./tbz2/$filenamedemos |
||
58 | gzip -S .tgz ./tgz/$filenamedemos |
||
59 | bzip2 ./tbz2/$filenameshark |
||
60 | bzip2 ./tbz2/$filenamedemos |
||
61 | |||
62 | |||
63 | exit 0 |
||
64 |