Rev 152 | 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 " |
||
152 | trimarchi | 11 | $ret cvs -d :pserver:anonymous@feanor.sssup.it:/home/cvs/cvsroot export -r HEAD $1 |
139 | trimarchi | 12 | return $ret |
13 | |||
14 | |||
15 | |||
16 | } |
||
17 | |||
18 | sharkpass="" |
||
19 | demospass="" |
||
152 | trimarchi | 20 | echo -n $"Give date or revision of distrib " |
139 | trimarchi | 21 | read date |
22 | echo -ne "\nsource-$date" |
||
152 | trimarchi | 23 | path="source$date" |
139 | trimarchi | 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 |
||
152 | trimarchi | 33 | #mkdir dosshark |
139 | trimarchi | 34 | |
152 | trimarchi | 35 | filenameshark="shark$date" |
36 | #filenamedemos="demos-$date" |
||
139 | trimarchi | 37 | |
38 | #create the shark zip archive |
||
152 | trimarchi | 39 | mv demos ./shark |
139 | trimarchi | 40 | zip -r "./zip/$filenameshark.zip" shark |
152 | trimarchi | 41 | filenameshark="$filenameshark.tar" |
42 | #zip -r "./zip/$filenamedemos.zip" demos |
||
139 | trimarchi | 43 | #cpopy the shark zip archive in dosshark |
152 | trimarchi | 44 | #cp "./zip/$filenameshark.zip" ./dosshark/ |
45 | #cp "./zip/$filenamedemos.zip" ./dosshark/ |
||
139 | trimarchi | 46 | #get the other shark component for dos |
152 | trimarchi | 47 | #wget http://shark.sssup.it/distrib/sharkuti.zip -O ./dosshark/sharkuti.zip |
48 | #wget http://shark.sssup.it/utils/unzip.exe -O ./dosshark/unzip.exe |
||
49 | #cp ./shark/distrib/dos/myfilter.c ./dosshark/ |
||
50 | #cp ./shark/distrib/dos/install.bat ./dosshark/ |
||
139 | trimarchi | 51 | #create the dosshark file |
152 | trimarchi | 52 | #zip -r "./dosshark/dosshark.zip" dosshark |
139 | trimarchi | 53 | |
54 | #create the tbz2 format |
||
55 | tar -cf ./tgz/$filenameshark shark |
||
56 | cp ./tgz/$filenameshark ./tbz2/$filenameshark |
||
57 | #create the tgz format |
||
154 | trimarchi | 58 | gzip ./tgz/$filenameshark |
152 | trimarchi | 59 | #tar -cf ./tgz/$filenamedemos demos |
139 | trimarchi | 60 | |
61 | #create the tbz2 format |
||
152 | trimarchi | 62 | #cp ./tgz/$filenamedemos ./tbz2/$filenamedemos |
63 | #gzip -S .tgz ./tgz/$filenamedemos |
||
139 | trimarchi | 64 | bzip2 ./tbz2/$filenameshark |
152 | trimarchi | 65 | #bzip2 ./tbz2/$filenamedemos |
139 | trimarchi | 66 | |
67 | |||
68 | exit 0 |
||
69 |