Revision 22720,
1.1 KB
checked in by ghudson, 17 years ago
(diff) |
Create an autoconfiscation transform step for Athena source trees
before the orig archive is created.
* debathena/scripts/mkinstalldirs,
debathena/scripts/install-sh: Copies from automake 1.10 so that we
aren't dependent on a specific version of automake.
* debathena/scripts/aclocal.m4: The Athena aclocal.m4, resurrected
from the attic.
* debathena/scripts/daconfiscate: New script to copy in boilerplate
and generate configure for Athena source directories.
* debathena/scripts/dasource: Invoke daconfiscate for athena packages.
Also, avoid creating conflicting orig archives by (1) leaving alone
an existing orig archive and (2) searching the apt repositories for
an orig archive before generating one.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # Usage: daconfiscate |
---|
4 | |
---|
5 | # Prepare an athena source checkout or export for use as a Debian |
---|
6 | # source package by copying in the Athena aclocal.m4 and some autoconf |
---|
7 | # boilerplate and generating configure. |
---|
8 | |
---|
9 | set -e |
---|
10 | |
---|
11 | datadir=$(dirname "$0") |
---|
12 | |
---|
13 | die() { |
---|
14 | echo "$@" >&2 |
---|
15 | exit 1 |
---|
16 | } |
---|
17 | |
---|
18 | # These are packaged with automake even though install-sh is a hard |
---|
19 | # requirement for autoconf. If we pull them from |
---|
20 | # /usr/share/automake-1.10 then we have to deal with automake version |
---|
21 | # skew. So we keep our own copies. mkinstalldirs can be eliminated |
---|
22 | # by switching to mkdir -p in our Makefiles and we should do that. |
---|
23 | cp $datadir/mkinstalldirs . |
---|
24 | cp $datadir/install-sh . |
---|
25 | |
---|
26 | # Copy in the Athena aclocal.m4 and the Debian config.guess and |
---|
27 | # config.sub. |
---|
28 | cp $datadir/aclocal.m4 . |
---|
29 | cp /usr/share/misc/config.guess . |
---|
30 | cp /usr/share/misc/config.sub . |
---|
31 | |
---|
32 | # Add libtool materials only if we're using it. |
---|
33 | if [ -e configure.ac ]; then |
---|
34 | configsrc=configure.ac |
---|
35 | else |
---|
36 | configsrc=configure.in |
---|
37 | fi |
---|
38 | if grep -q AC_PROG_LIBTOOL $configsrc; then |
---|
39 | cp /usr/share/libtool/ltmain.sh $(DEB_SRCDIR) |
---|
40 | cat /usr/share/libtool/libtool.m4 >> aclocal.m4 |
---|
41 | fi |
---|
42 | |
---|
43 | autoconf |
---|
44 | rm -rf autom4te.cache |
---|
Note: See
TracBrowser
for help on using the repository browser.