File: makeBinaryTar.in

package info (click to toggle)
clhep 2.1.4.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 10,004 kB
  • sloc: cpp: 50,094; sh: 6,694; makefile: 2,691; perl: 28
file content (41 lines) | stat: -rwxr-xr-x 747 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# make binary tarballs 
# This script assumes that the bootstrap script has already been run successfully.


# makeSourceDist <tarball directory> <extra name info>
#  e.g. <extra name info> might be gcc-2.95.2 for gcc 2.95.2

if [ ! -d @prefix@ ] 
then
    echo "@prefix@ does not exist"
    exit 1
fi

if [ ! -d $1 ] 
then
    echo "$1 does not exist"
    exit 1
fi

if [ $# -eq 2 ]
then
    extra="-$2"
fi

##set -x

# make sure we have the full path
thisdir=`pwd`
cd @prefix@; binarydir=`pwd`
cd $thisdir
cd $1; tardir=`pwd`

if [ -d $binarydir/doc ] 
then
    more=doc
fi
cd $binarydir;
# use option z to create compressed tar ball ... (8 MB instead of 28 :-) )
tar -zcf $tardir/clhep-@VERSION@$extra.tgz bin include lib data $more