~ubuntu-branches/ubuntu/intrepid/tcm/intrepid

« back to all changes in this revision

Viewing changes to bin/mksrcdist

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# script to build tar.gz distribution of the TCM sources.
 
4
 
 
5
[ ${TCM_HOME} ] || {
 
6
   echo TCM_HOME is not set. Bailing out.; exit 1
 
7
}
 
8
 
 
9
if [ $# != 1 ]
 
10
then
 
11
        echo "Usage: `basename $0` version"
 
12
        exit
 
13
fi
 
14
VERSION=$1
 
15
TAR=gtar
 
16
DISTFILE=tcm-$VERSION.src.tar.gz
 
17
PREFIX=tcm-$VERSION
 
18
SRC='COPYING       
 
19
     CHANGELOG     
 
20
     FILEMAP
 
21
     INSTALL*
 
22
     MANIFEST
 
23
     README*       
 
24
     Makefile*
 
25
     tcm*.spec       
 
26
     tcm*.patch       
 
27
     tcm.lsm
 
28
     bin/Makefile
 
29
     bin/_cygwin_*
 
30
     bin/link*  
 
31
     bin/mkbindist      
 
32
     bin/mksrcdist      
 
33
     bin/mkclasslist    
 
34
     bin/makedepend.sh
 
35
     bin/makeundepend.sh
 
36
     bin/psf    
 
37
     doc/Makefile
 
38
     doc/contributions
 
39
     doc/developersguide/*.css
 
40
     doc/developersguide/*.html
 
41
     doc/developersguide/*.gif
 
42
     doc/developersguide*pdf.gz
 
43
     doc/developersguide*ps.gz
 
44
     doc/index.html
 
45
     doc/sourcecode/*.html
 
46
     doc/sourcecode/*.gif
 
47
     doc/sourcecode*.ps.gz
 
48
     doc/specifications/[a-z]*
 
49
     doc/specifications/T*
 
50
     doc/usersguide.html
 
51
     doc/usersguide/*.css
 
52
     doc/usersguide/*.html
 
53
     doc/usersguide/*.gif
 
54
     doc/usersguide*pdf.gz
 
55
     doc/usersguide*ps.gz
 
56
     doc/wishlist/FutureDevelopments*
 
57
     doc/wishlist/WishList*
 
58
     lib/Makefile
 
59
     lib/help/[D-Z]*    
 
60
     lib/banner.ps 
 
61
     lib/TCM
 
62
     lib/colorrgb.txt   
 
63
     lib/tcm.conf  
 
64
     man/windex
 
65
     man/man1/*.1
 
66
     src/Config*        
 
67
     src/Makefile*
 
68
     src/bitmaps/*.gif
 
69
     src/bitmaps/*.xbm
 
70
     src/bitmaps/*.xpm
 
71
     src/??/Makefile 
 
72
     src/??/README* 
 
73
     src/??/*.[hcly] 
 
74
     src/??/??/Makefile
 
75
     src/??/??/*.[hcly]'
 
76
cd $TCM_HOME
 
77
/bin/ls -d $SRC | sed -e "s:^:$PREFIX/:" > MANIFEST
 
78
(cd ..; ln -s $TCM_HOME $PREFIX)
 
79
(cd ..; $TAR -czvf $TCM_HOME/$DISTFILE `cat $TCM_HOME/MANIFEST`)
 
80
(cd ..; rm $PREFIX)