summaryrefslogtreecommitdiff
path: root/autogen
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-03-21 20:28:41 -0700
committerGlenn Morris <rgm@gnu.org>2011-03-21 20:28:41 -0700
commit34cb1cc610f71fb880a2a767061aade29e93a983 (patch)
tree3cb5a4047a4bee8fd57de0f2763e347f1d38c48a /autogen
parentfccee4ab7294f92e42ebf90786b7b301d0368e87 (diff)
downloademacs-34cb1cc610f71fb880a2a767061aade29e93a983.tar.gz
copy_autogen tweaks.
* autogen/copy_autogen: Work from ./ or ../. Fix time-stamps. * autogen.sh: Doc fix.
Diffstat (limited to 'autogen')
-rwxr-xr-xautogen/copy_autogen9
1 files changed, 7 insertions, 2 deletions
diff --git a/autogen/copy_autogen b/autogen/copy_autogen
index 4abdbd87c0f..2096636c38b 100755
--- a/autogen/copy_autogen
+++ b/autogen/copy_autogen
@@ -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/