]> code.delx.au - gnu-emacs/blobdiff - autogen/copy_autogen
url-http-wait-for-headers-change-function fix for bug#13598
[gnu-emacs] / autogen / copy_autogen
index 4abdbd87c0f43b2d8e6349be0f9fbe475457ca42..8aacd4d399ae0fe1e0c294f41eacb5e9ca7bc641 100755 (executable)
@@ -3,18 +3,25 @@
 ## Helper script for those building Emacs from bzr without autoconf etc.
 ## This installs some pre-generated versions of the automatically
 ## generated files.  It is highly recommended to install the necessary
-## tools instead of using this.  Note that if eg configure.in
+## tools instead of using this.  Note that if eg configure.ac
 ## is updated, the next time you run make it will attempt to
 ## 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 || exit
+
 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 ../
-cp config.in ../src/
-cp Makefile.in ../lib/
+## Order implied by top-level Makefile's rules, for time-stamps.
+cp -f compile config.guess config.sub depcomp install-sh missing \
+  ../build-aux &&
+cp aclocal.m4 ../ &&
+cp configure ../ &&
+touch ../src/stamp-h.in &&
+cp config.in ../src/ &&
+cp Makefile.in ../lib/ &&
 
 echo "You can now run configure"