source: trunk/debathena/scripts/daconfiscate @ 22720

Revision 22720, 1.1 KB checked in by ghudson, 16 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 *
RevLine 
[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
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 $(DEB_SRCDIR)
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.