source: SH_SHM/trunk/util/savesource.csh @ 92

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
11if  ("$1" == "")  then
12        echo "Usage: $0 <tarfile>"
13        exit
14endif
15
16# get parameters
17set tarfile=$1
18
19set curd=$PWD
20
21chdir $SH_ROOT
22
23set clist=`find . -name \*.c -print`
24set hlist=`find . -name \*.h -print`
25set mlist=`find . -name Makefile -print`
26set ulist=`find . -name \*.uil -print`
27set slist=`find . -name \*.csh -print`
28set ylist=`find . -name \*.py -print`
29set dlist=`find . -name \*.html -print`
30set elist=`find . -name ERR_\*.MSG -print`
31set tlist=`find . -name shm-conf\*.txt`
32set 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
38tar cvf $tarfile $clist $hlist $mlist $ulist $slist $ylist $elist $dlist $tlist $xlist
39echo ""
40echo "bzipping ..."
41if  (-e $tarfile.bz2)  \rm $tarfile.bz2
42bzip2 $tarfile
43
44cd $curd
45if  (! -e $tarfile.bz2)  mv $SH_ROOT/$tarfile.bz2 .
Note: See TracBrowser for help on using the repository browser.