File: mkbindist

package info (click to toggle)
tcm 2.20%2BTSQD-6
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 22,768 kB
  • sloc: ansic: 78,527; sh: 3,618; makefile: 1,345; perl: 753; yacc: 558; lex: 257
file content (46 lines) | stat: -rwxr-xr-x 964 bytes parent folder | download | duplicates (7)
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
#! /bin/sh
# 
# script to build tar.gz distribution of TCM binaries.

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

if [ $# != 2 ]
then
        echo "Usage: `basename $0` version platform"
        exit
fi
VERSION=$1
PLATFORM=$2
TAR=gtar
DISTFILE=tcm-$VERSION.bin.$PLATFORM.tar.gz
PREFIX=tcm-$VERSION
SRC='COPYING       
    CHANGELOG     
    MANIFEST
    INSTALL*
    FILEMAP
    README*       
    bin/psf
    bin/t*
    doc/usersguide.html 
    doc/usersguide/*.css
    doc/usersguide/*.html
    doc/usersguide/*.gif
    doc/usersguide*.ps.gz
    doc/wishlist/FutureDevelopments.html
    doc/wishlist/WishList.html
    lib/TCM
    lib/banner.ps
    lib/colorrgb.txt
    lib/help/[D-Z]*	
    lib/tcm.conf
    lib/*.so
    man/windex
    man/man1/*.1'
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)