From c73db16a1f8b1e31d4a2a7de7d56c814c68ec229 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 31 Jul 2007 19:53:20 +0000 Subject: [PATCH] simplified autogen.sh --- autogen.sh | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/autogen.sh b/autogen.sh index 0fc93302..53900970 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,31 +1,3 @@ -#!/bin/sh - -# function saves 'COPYING' and 'INSTALL' as they get clobbered. -save () { - COPYING_ok=false - INSTALL_ok=false - cp COPYING COPYING.save && COPYING_ok=true - cp INSTALL INSTALL.save && INSTALL_ok=true -} - -# function restores 'COPYING' and 'INSTALL' which have probably been clobbered. -restore () { - $COPYING_ok && mv COPYING.save COPYING - $INSTALL_ok && mv INSTALL.save INSTALL -} - -# save the files before they get clobbered. -save -trap "restore; exit 130" 1 2 15 - -# run autoreconf. The -i and -f flags causes files to be overwritten. -autoreconf_ok=false -autoreconf -i -f && autoreconf_ok=true - -# unclobber the overwritten files. -restore -trap - 1 2 15 - -# re-run configure script if autoreconf was successful. -$autoreconf_ok && ./configure --enable-maintainer-mode $* +#!/bin/bash +autoreconf -i -B m4 -- 2.26.2