Revision 16,
1.0 KB
checked in by marcus, 15 years ago
(diff) |
r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines
Initial import
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #! /bin/csh |
---|
2 | # |
---|
3 | # file savesource.csh |
---|
4 | # ============== |
---|
5 | # |
---|
6 | # version 6, 30-Jan-2007 |
---|
7 | # |
---|
8 | # Saves source files to tar archive |
---|
9 | # K. Stammler, 12-Nov-2004 |
---|
10 | |
---|
11 | if ("$1" == "") then |
---|
12 | echo "Usage: $0 <tarfile>" |
---|
13 | exit |
---|
14 | endif |
---|
15 | |
---|
16 | # get parameters |
---|
17 | set tarfile=$1 |
---|
18 | |
---|
19 | set curd=$PWD |
---|
20 | |
---|
21 | chdir $SH_ROOT |
---|
22 | |
---|
23 | set clist=`find . -name \*.c -print` |
---|
24 | set hlist=`find . -name \*.h -print` |
---|
25 | set mlist=`find . -name Makefile -print` |
---|
26 | set ulist=`find . -name \*.uil -print` |
---|
27 | set slist=`find . -name \*.csh -print` |
---|
28 | set ylist=`find . -name \*.py -print` |
---|
29 | set dlist=`find . -name \*.html -print` |
---|
30 | set elist=`find . -name ERR_\*.MSG -print` |
---|
31 | set tlist=`find . -name shm-conf\*.txt` |
---|
32 | set xlist = ( \ |
---|
33 | ./doc/gpl.txt ./command/MERGE_ALL.SHC ./command/READGSE_MERGE.SHC \ |
---|
34 | ./help/SPECTROGRAM.HLP ./help/MAXAMPL.HLP util/sfdb/create_tables.s \ |
---|
35 | ) |
---|
36 | |
---|
37 | |
---|
38 | tar cvf $tarfile $clist $hlist $mlist $ulist $slist $ylist $elist $dlist $tlist $xlist |
---|
39 | echo "" |
---|
40 | echo "bzipping ..." |
---|
41 | if (-e $tarfile.bz2) \rm $tarfile.bz2 |
---|
42 | bzip2 $tarfile |
---|
43 | |
---|
44 | cd $curd |
---|
45 | if (! -e $tarfile.bz2) mv $SH_ROOT/$tarfile.bz2 . |
---|
Note: See
TracBrowser
for help on using the repository browser.