File: orig

package info (click to toggle)
libtool 2.4.6-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 15,896 kB
  • sloc: sh: 53,997; ansic: 4,322; makefile: 872
file content (63 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (6)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh

# (c) 2000-2007 Piotr Roszatycki <dexter@debian.org> GPL

# This utility downloads upstream's source and
# generates source package

set -e

if [ -f changelog ]; then
    cd ..
elif [ ! -f debian/changelog ]; then
    echo "can't find changelog file"
    exit 1
fi

SRCNAME=libtool
#SRCVERSION=2.1a

tmpdir=debsource-$SRCNAME

debdir=`pwd`

cd ..

rm -rf $tmpdir
mkdir $tmpdir

cd $tmpdir

echo "N: Downloading CVS snapshot..."

cvs -z3 -d :pserver:anonymous@cvs.sv.gnu.org:/sources/libtool co libtool

cd libtool

cvs up -dP

find -name CVS -print0 -o -name .cvsignore -print0 | xargs -0 rm -rf
#AUTOMAKE=automake-1.10 ./bootstrap
#find -name autom4te.cache -print0 | xargs -0 rm -rf

upsrcver=`grep ^AC_INIT configure.ac | sed 's/.[libtool]//; s/[^[]*\[//; s/].*//'`
upsrcrev=`libltdl/config/mkstamp < ChangeLog | awk '{ print $1 }'`
upsrcdate=`libltdl/config/mkstamp < ChangeLog | awk '{ print $2 }' | tr -d '/'`

srcversion="$upsrcver+cvs$upsrcrev+$upsrcdate"
srcdir=${SRCNAME}-`echo $srcversion | sed -e 's/.*://'`
srcorig=${SRCNAME}_`echo $srcversion | sed -e 's/.*://'`.orig.tar.gz

echo "N: Creating archive $srcorig..."

cd ..

mv libtool $srcdir

tar zcf ../$srcorig $srcdir

cd ..

rm -rf $tmpdir

echo "N: Done."