Author: joes
Date: Tue Jul 12 07:37:45 2005
New Revision: 215960

URL: http://svn.apache.org/viewcvs?rev=215960&view=rev
Log:
make reconfig should use original
buildconf args instead of hard-coded
values.

Submitted by: Philip M. Gollucci
Message-ID: <[EMAIL PROTECTED]>

Modified:
    httpd/apreq/trunk/Makefile.am
    httpd/apreq/trunk/buildconf

Modified: httpd/apreq/trunk/Makefile.am
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/trunk/Makefile.am?rev=215960&r1=215959&r2=215960&view=diff
==============================================================================
--- httpd/apreq/trunk/Makefile.am (original)
+++ httpd/apreq/trunk/Makefile.am Tue Jul 12 07:37:45 2005
@@ -43,7 +43,7 @@
        @echo "$(distdir).tar.gz is kosher."
 
 reconfig:
-       ./buildconf --with-automake=automake-1.6 --with-aclocal=aclocal-1.6
+       ./buildconf.nice
        ./config.nice
 
 docs_clean:

Modified: httpd/apreq/trunk/buildconf
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/trunk/buildconf?rev=215960&r1=215959&r2=215960&view=diff
==============================================================================
--- httpd/apreq/trunk/buildconf (original)
+++ httpd/apreq/trunk/buildconf Tue Jul 12 07:37:45 2005
@@ -25,6 +25,7 @@
 autoconf="${AUTOCONF:-autoconf}"
 autoheader="${AUTOHEADER:-autoheader}"
 
+save_args="$*";
 
 while test $# -gt 0 
 do
@@ -81,5 +82,15 @@
 echo "running $automake -a -c" && $automake -a -c && \
 echo "running xsbuilder" && (cd glue/perl && $perl ../../build/xsbuilder.pl) 
&& \
 echo "running cpan prereq fixups" && $perl -i -wpe "s/PREREQ_PM/$PREREQ_PM/" 
Makefile.in && \
-echo "buildconf successful."
-
+echo "saving arguments for reuse." && cat >buildconf.nice <<END_CAT
+#!/bin/sh
+./buildconf $save_args
+END_CAT
+
+if [ "$?" -eq "0" ] ; then
+  chmod +x buildconf.nice && \
+  echo "buildconf successful."
+else
+  echo "saving buildconf arguments failed."
+  exit 1
+fi


Reply via email to