]> code.delx.au - gnu-emacs/commitdiff
copy_autogen tweaks.
authorGlenn Morris <rgm@gnu.org>
Tue, 22 Mar 2011 03:28:41 +0000 (20:28 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 22 Mar 2011 03:28:41 +0000 (20:28 -0700)
* autogen/copy_autogen: Work from ./ or ../.
Fix time-stamps.
* autogen.sh: Doc fix.

ChangeLog
autogen.sh
autogen/copy_autogen

index a58a60465d4ae8402c2a4f00c654d83dc7ced793..d13832b9060e807aef808c4bcaf51d6eb48dca92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-22  Glenn Morris  <rgm@gnu.org>
+
+       * autogen/copy_autogen: Work from ./ or ../.
+       Fix time-stamps.
+       * autogen.sh: Doc fix.
+
 2011-03-20  Glenn Morris  <rgm@gnu.org>
 
        * autogen/: New directory, to be excluded from releases.
index a56b8d77826b125fb5248fcfae758129ee9c8805..03c39ee9456a1b5c44fd2e5e1f16dac985a00339 100755 (executable)
@@ -184,7 +184,7 @@ instead of this script.
 If all else fails, you can try using the pre-built versions of the
 generated files by doing:
 
-cd autogen && ./copy_autogen
+./autogen/copy_autogen
 
 This is not recommended - see the comments in \`copy_autogen'.
 
index 4abdbd87c0f43b2d8e6349be0f9fbe475457ca42..2096636c38b384db824258585f0e4fb8ccc12515 100755 (executable)
@@ -8,12 +8,17 @@
 ## regenerate configure and will fail if you do not have the required
 ## tools.  You will have to run this script again.
 
+test -d autogen && cd autogen
+
 if test ! -e config.in; then
-    echo "You must run this script from the autogen/ directory."
+    echo "Cannot find autogen/ directory."
     exit 1
 fi
 
-cp configure aclocal.m4 ../
+## Order implied by top-level Makefile's rules, for time-stamps.
+cp aclocal.m4 ../
+cp configure ../
+touch ../src/stamp-h.in
 cp config.in ../src/
 cp Makefile.in ../lib/