~ubuntu-branches/ubuntu/utopic/ltrace/utopic-proposed

« back to all changes in this revision

Viewing changes to mkdist

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-07-28 16:44:35 UTC
  • mfrom: (1.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090728164435-d88mottol5xryqk7
Tags: 0.5.3-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #404856
  - Add lpia to architecture list.
  - Use libelf-dev instead of libelfg0-dev
  - Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE in debian/rules CFLAGS.
    The configure script has a bug where it can't properly cope with the need
    to define these before detecting the use of elfutils.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Create ltrace-${version}.tar.gz from a GIT repository
4
4
 
5
 
if [ ! -d .git -o ! -f ltrace.c ]
 
5
if [ ! -d .git -o ! -f libltrace.c ]
6
6
then
7
7
  echo "This must be called inside a ltrace GIT repository" 1>&2
8
8
  exit 1
9
9
fi
10
10
 
11
 
VERSION=$( grep ^AC_INIT configure.ac | awk -F, '{print $2}' )
 
11
VERSION=$( cat VERSION )
12
12
 
13
13
echo Building ltrace-$VERSION.tar.gz ...
14
14
rm -rf ltrace-$VERSION
15
15
git clone ./ ltrace-$VERSION >/dev/null
16
 
cd ltrace-$VERSION
17
 
aclocal
18
 
autoheader
19
 
autoconf
20
 
rm -rf autom4te.cache
21
 
cd ..
22
16
GZIP=-9 tar --exclude .git -zcf ltrace-$VERSION.tar.gz ltrace-$VERSION
23
17
rm -rf ltrace-$VERSION
24
18
echo Done.