shithub: choc

Download patch

ref: f5396cf3c7d90ddb54c96be0a2c7ed6d41d21d10
parent: d44fdfaeee2f4be129c0e2d87ba460fc308e4274
author: Jan Engelhardt <jengelh@inai.de>
date: Tue Dec 10 12:02:05 EST 2013

build: do not create an INSTALL file

If the general-instruction INSTALL file is not desired, just specify so
in AUTOMAKE_OPTIONS rather than fiddling with it in autogen.sh.

--- a/autogen.sh
+++ b/autogen.sh
@@ -1,11 +1,5 @@
 #!/bin/sh
 
-if [ -e INSTALL ]; then
-    have_INSTALL=true
-else
-    have_INSTALL=false
-fi
-
 mkdir -p autotools
 
 aclocal
@@ -14,13 +8,4 @@
 autoconf
 automake
 
-# The INSTALL file is autogenerated, so it isn't stored in version control.
-# As the file isn't present, automake's -a option will install generic
-# install instructions.  So remove INSTALL if automake installed one.
-
-if ! $have_INSTALL; then
-    rm -f INSTALL
-fi
-
 ./configure "$@"
-
--- a/configure.ac
+++ b/configure.ac
@@ -95,7 +95,7 @@
 
 dnl Automake v1.8.0 is required, please upgrade!
 
-AM_INIT_AUTOMAKE([1.8.0])
+AM_INIT_AUTOMAKE([1.8.0 foreign])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION | sed 's/-.*//; s/\./, /g; s/$/, 0/'`