diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-04-20 17:03:51 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-04-20 17:05:28 +0200 |
commit | 40e7907446fb74992de563988ac3c47b5a62e909 (patch) | |
tree | bfb7047130dcdf36eecccd9b084613fb2b67b9ef /t/insthook.sh | |
parent | 82628de32451186708c0630cf995fdf5430c3f76 (diff) | |
download | automake-40e7907446fb74992de563988ac3c47b5a62e909.tar.gz |
tests: tweaks and minimal improvements to t/insthook.sh
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/insthook.sh')
-rwxr-xr-x | t/insthook.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/t/insthook.sh b/t/insthook.sh index 96659afe3..92840df96 100755 --- a/t/insthook.sh +++ b/t/insthook.sh @@ -27,9 +27,9 @@ cat >Makefile.am <<'END' dist_bin_SCRIPTS = foo install-exec-hook: - cd "$(DESTDIR)$(bindir)" && \ - mv -f foo foo-$(VERSION) && \ - $(LN_S) foo-$(VERSION) foo + cd "$(DESTDIR)$(bindir)" \ + && mv -f foo foo-$(VERSION) \ + && $(LN_S) foo-$(VERSION) foo installcheck-local: test -f "$(bindir)/foo" @@ -40,7 +40,7 @@ uninstall-hook: rm -f $(DESTDIR)$(bindir)/foo-$(VERSION) END -echo 1 > foo +echo a > foo $ACLOCAL $AUTOCONF @@ -58,11 +58,11 @@ test -f ok # version.) ./configure "--bindir=$(pwd)/bin" $MAKE install -echo 2 > foo +echo b > foo VERSION=2.0 $MAKE -e install -grep 1 bin/foo-1.0 -grep 2 bin/foo-2.0 -grep 2 bin/foo +test $(cat bin/foo-1.0) = a +test $(cat bin/foo-2.0) = b +test $(cat bin/foo) = b # install-hook is an error. cat >>Makefile.am <<EOF |