Revision 22805,
1.1 KB
checked in by ghudson, 17 years ago
(diff) |
In daconfiscate, fix the copy of ltmain.sh for libtool-using programs.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[22720] | 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 |
---|
[22805] | 39 | cp /usr/share/libtool/ltmain.sh . |
---|
[22720] | 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.