1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #! /bin/sh
- . test-init.sh
- cat >>configure.ac <<'EOF'
- AC_PROG_LN_S
- AC_OUTPUT
- EOF
- cat >Makefile.am <<'END'
- dist_bin_SCRIPTS = foo
- install-exec-hook:
- cd "$(DESTDIR)$(bindir)" \
- && mv -f foo foo-$(VERSION) \
- && $(LN_S) foo-$(VERSION) foo
- installcheck-local:
- test -f "$(bindir)/foo"
- test -f "$(bindir)/foo-$(VERSION)"
- : > $(top_srcdir)/../ok
- uninstall-hook:
- rm -f $(DESTDIR)$(bindir)/foo-$(VERSION)
- END
- echo a > foo
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- ./configure
- $MAKE distcheck
- test -f ok
- ./configure "--bindir=$(pwd)/bin"
- $MAKE install
- echo b > foo
- run_make VERSION=2.0 install
- test $(cat bin/foo-1.0) = a
- test $(cat bin/foo-2.0) = b
- test $(cat bin/foo) = b
- cat >>Makefile.am <<EOF
- install-hook:
- echo test
- EOF
- AUTOMAKE_fails
- grep install-data-hook stderr
- grep install-exec-hook stderr
- :
|