* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
[bpt/emacs.git] / autogen / copy_autogen
CommitLineData
66b87493
GM
1#!/bin/sh
2
3## Helper script for those building Emacs from bzr without autoconf etc.
4## This installs some pre-generated versions of the automatically
5## generated files. It is highly recommended to install the necessary
c4444d16 6## tools instead of using this. Note that if eg configure.ac
66b87493
GM
7## is updated, the next time you run make it will attempt to
8## regenerate configure and will fail if you do not have the required
9## tools. You will have to run this script again.
10
dee26dfa 11test ! -d autogen || cd autogen || exit
34cb1cc6 12
66b87493 13if test ! -e config.in; then
34cb1cc6 14 echo "Cannot find autogen/ directory."
66b87493
GM
15 exit 1
16fi
17
34cb1cc6 18## Order implied by top-level Makefile's rules, for time-stamps.
dee26dfa
PE
19cp -f compile config.guess config.sub depcomp install-sh missing \
20 ../build-aux &&
21cp aclocal.m4 ../ &&
22cp configure ../ &&
23touch ../src/stamp-h.in &&
24cp config.in ../src/ &&
25cp Makefile.in ../lib/ &&
66b87493
GM
26
27echo "You can now run configure"