~ubuntu-branches/ubuntu/utopic/tcm/utopic

« back to all changes in this revision

Viewing changes to bin/mkbindist

  • 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 TCM binaries.
 
4
 
 
5
[ ${TCM_HOME} ] || {
 
6
   echo TCM_HOME is not set. Bailing out.; exit 1
 
7
}
 
8
 
 
9
if [ $# != 2 ]
 
10
then
 
11
        echo "Usage: `basename $0` version platform"
 
12
        exit
 
13
fi
 
14
VERSION=$1
 
15
PLATFORM=$2
 
16
TAR=gtar
 
17
DISTFILE=tcm-$VERSION.bin.$PLATFORM.tar.gz
 
18
PREFIX=tcm-$VERSION
 
19
SRC='COPYING       
 
20
    CHANGELOG     
 
21
    MANIFEST
 
22
    INSTALL*
 
23
    FILEMAP
 
24
    README*       
 
25
    bin/psf
 
26
    bin/t*
 
27
    doc/usersguide.html 
 
28
    doc/usersguide/*.css
 
29
    doc/usersguide/*.html
 
30
    doc/usersguide/*.gif
 
31
    doc/usersguide*.ps.gz
 
32
    doc/wishlist/FutureDevelopments.html
 
33
    doc/wishlist/WishList.html
 
34
    lib/TCM
 
35
    lib/banner.ps
 
36
    lib/colorrgb.txt
 
37
    lib/help/[D-Z]*     
 
38
    lib/tcm.conf
 
39
    lib/*.so
 
40
    man/windex
 
41
    man/man1/*.1'
 
42
cd $TCM_HOME
 
43
/bin/ls -d $SRC | sed -e "s:^:$PREFIX/:" > MANIFEST
 
44
(cd ..; ln -s $TCM_HOME $PREFIX)
 
45
(cd ..; $TAR -czvf $TCM_HOME/$DISTFILE `cat $TCM_HOME/MANIFEST`)
 
46
(cd ..; rm $PREFIX)