X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mkauto.sh;h=9759438f878072e20e7f0457344a5515293fab35;hb=54cc0c5b296ee7c27b48a3c8e7aead6e74f2abf1;hp=078669430159c747c3fc0ac206b142eda02c7288;hpb=865b6b404d34f8eec5d3a3abccb8e38271bef6a6;p=PuTTY.git diff --git a/mkauto.sh b/mkauto.sh index 07866943..9759438f 100755 --- a/mkauto.sh +++ b/mkauto.sh @@ -7,41 +7,5 @@ # well as from outside. test -f unix.h && cd .. -# Persuade automake to give us a copy of its install-sh. This is a -# pain because I don't actually want to have to _use_ automake. -# Instead, I construct a trivial unrelated automake project in a -# temporary subdirectory, run automake so that it'll copy -# install-sh into that directory, then copy it back out again. -# Hideous, but it should work. - -mkdir automake-grievous-hack -cat > automake-grievous-hack/hello.c << EOF -#include -int main(int argc, char **argv) -{ - printf("hello, world\n"); - return 0; -} -EOF -cat > automake-grievous-hack/Makefile.am << EOF -bin_PROGRAMS = hello -hello_SOURCES = hello.c -EOF -cat > automake-grievous-hack/configure.ac << EOF -AC_INIT -AM_INIT_AUTOMAKE(hello, 1.0) -AC_CONFIG_FILES([Makefile]) -AC_PROG_CC -AC_OUTPUT -EOF -echo Some news > automake-grievous-hack/NEWS -echo Some text > automake-grievous-hack/README -echo Some people > automake-grievous-hack/AUTHORS -echo Some changes > automake-grievous-hack/ChangeLog -rm -f install-sh # this won't work if we accidentally have one _here_ -(cd automake-grievous-hack && autoreconf -i && \ - cp install-sh ../unix/install-sh) -rm -rf automake-grievous-hack - -# That was the hard bit. Now run autoconf on our real configure.in. -(cd unix && autoreconf && rm -rf aclocal.m4 autom4te.cache) +# Run autoconf on our real configure.in. +autoreconf -i && rm -rf autom4te.cache