File: makeSourceDist.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 (39 lines) | stat: -rwxr-xr-x 704 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
#!/bin/sh

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


# makeSourceDist <tarball directory>

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

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

##set -x

# make sure we have the full paths
thisdir=`pwd`
cd @top_srcdir@/..; srccodedir=`pwd`
cd $thisdir
cd $1; tardir=`pwd`

cd $srccodedir;
tar -zcf $tardir/clhep-@VERSION@-src.tgz CLHEP

for pkg in `ls $srccodedir/CLHEP`
do
    if [ -e $srccodedir/CLHEP/$pkg/configure.in ] 
    then
        cd $srccodedir;
        tar -zcf $tardir/clhep-$pkg-@VERSION@-src.tgz CLHEP/$pkg
    fi
done