source: trunk/debathena/scripts/daconfiscate @ 22805

Revision 22805, 1.1 KB checked in by ghudson, 14 years ago (diff)
In daconfiscate, fix the copy of ltmain.sh for libtool-using programs.
  • 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
9set -e
10
11datadir=$(dirname "$0")
12
13die() {
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.
23cp $datadir/mkinstalldirs .
24cp $datadir/install-sh .
25
26# Copy in the Athena aclocal.m4 and the Debian config.guess and
27# config.sub.
28cp $datadir/aclocal.m4 .
29cp /usr/share/misc/config.guess .
30cp /usr/share/misc/config.sub .
31
32# Add libtool materials only if we're using it.
33if [ -e configure.ac ]; then
34  configsrc=configure.ac
35else
36  configsrc=configure.in
37fi
38if grep -q AC_PROG_LIBTOOL $configsrc; then
39  cp /usr/share/libtool/ltmain.sh .
40  cat /usr/share/libtool/libtool.m4 >> aclocal.m4
41fi
42
43autoconf
44rm -rf autom4te.cache
Note: See TracBrowser for help on using the repository browser.