From: Tom Tromey Date: Tue, 1 Jan 2002 23:28:40 +0000 (+0000) Subject: For PR automake/234: X-Git-Tag: Release-1-5d~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e2bb96f1800b131a7f62fe32de64560a5895f93;p=thirdparty%2Fautomake.git For PR automake/234: * tests/Makefile.am (TESTS): Added strip.test. * tests/strip.test: New file. --- diff --git a/ChangeLog b/ChangeLog index 5835712cc..fc65a7d48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-01-01 Tom Tromey + For PR automake/234: + * tests/Makefile.am (TESTS): Added strip.test. + * tests/strip.test: New file. + * automake.texi (Extending): Mention uninstall-hook. (Install): Likewise. * automake.in (handle_factored_dependencies): Allow diff --git a/tests/Makefile.am b/tests/Makefile.am index 4263cf133..6f3d62ad2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -279,6 +279,7 @@ spelling.test \ stamph.test \ stamph2.test \ stdlib.test \ +strip.test \ subdir.test \ subdir2.test \ subdir3.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 23e9de9ed..fb04f2214 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -352,6 +352,7 @@ spelling.test \ stamph.test \ stamph2.test \ stdlib.test \ +strip.test \ subdir.test \ subdir2.test \ subdir3.test \ @@ -531,6 +532,7 @@ install-am: all-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: diff --git a/tests/strip.test b/tests/strip.test new file mode 100755 index 000000000..154db6642 --- /dev/null +++ b/tests/strip.test @@ -0,0 +1,36 @@ +#! /bin/sh + +# Test for install-strip. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(foo, 0.1, dev@null) +AM_INIT_AUTOMAKE($PACKAGE, $VERSION) +AC_PROG_CC +AM_CONDITIONAL(FOOTEST, false) +AC_CONFIG_FILES(Makefile) +AC_OUTPUT +END + +cat > Makefile.am << 'END' +bin_SCRIPTS = foo +END + +cat > foo << 'END' +#! /bin/sh +echo Maude +END + +chmod +x foo + +set -e + +mkdir install + +$ACLOCAL +$AUTOCONF +$AUTOMAKE -a +./configure --prefix=`cd install && pwd` +make +make install-strip