File: mksrcdist

package info (click to toggle)
tcm 2.20+TSQD-6
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 22,768 kB
  • sloc: ansic: 78,527; sh: 3,618; makefile: 1,345; perl: 753; yacc: 558; lex: 257
file content (80 lines) | stat: -rwxr-xr-x 1,784 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /bin/sh
#
# script to build tar.gz distribution of the TCM sources.

[ ${TCM_HOME} ] || {
   echo TCM_HOME is not set. Bailing out.; exit 1
}

if [ $# != 1 ]
then
        echo "Usage: `basename $0` version"
        exit
fi
VERSION=$1
TAR=gtar
DISTFILE=tcm-$VERSION.src.tar.gz
PREFIX=tcm-$VERSION
SRC='COPYING       
     CHANGELOG     
     FILEMAP
     INSTALL*
     MANIFEST
     README*       
     Makefile*
     tcm*.spec       
     tcm*.patch       
     tcm.lsm
     bin/Makefile
     bin/_cygwin_*
     bin/link*	
     bin/mkbindist	
     bin/mksrcdist	
     bin/mkclasslist	
     bin/makedepend.sh
     bin/makeundepend.sh
     bin/psf	
     doc/Makefile
     doc/contributions
     doc/developersguide/*.css
     doc/developersguide/*.html
     doc/developersguide/*.gif
     doc/developersguide*pdf.gz
     doc/developersguide*ps.gz
     doc/index.html
     doc/sourcecode/*.html
     doc/sourcecode/*.gif
     doc/sourcecode*.ps.gz
     doc/specifications/[a-z]*
     doc/specifications/T*
     doc/usersguide.html
     doc/usersguide/*.css
     doc/usersguide/*.html
     doc/usersguide/*.gif
     doc/usersguide*pdf.gz
     doc/usersguide*ps.gz
     doc/wishlist/FutureDevelopments*
     doc/wishlist/WishList*
     lib/Makefile
     lib/help/[D-Z]*	
     lib/banner.ps 
     lib/TCM
     lib/colorrgb.txt   
     lib/tcm.conf  
     man/windex
     man/man1/*.1
     src/Config*	
     src/Makefile*
     src/bitmaps/*.gif
     src/bitmaps/*.xbm
     src/bitmaps/*.xpm
     src/??/Makefile 
     src/??/README* 
     src/??/*.[hcly] 
     src/??/??/Makefile
     src/??/??/*.[hcly]'
cd $TCM_HOME
/bin/ls -d $SRC | sed -e "s:^:$PREFIX/:" > MANIFEST
(cd ..; ln -s $TCM_HOME $PREFIX)
(cd ..; $TAR -czvf $TCM_HOME/$DISTFILE `cat $TCM_HOME/MANIFEST`)
(cd ..; rm $PREFIX)