| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | #! /bin/sh# Copyright (C) 2011-2017 Free Software Foundation, Inc.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.# Check against automake bug#9578: "make uninstall" issued before# "make install" or after a mere "make install-data" or a mere# "make install-exec" failed spuriously.## FIXME: this test only deal with DATA and script primaries; maybe we# need sister tests for other primaries too?  E.g., PROGRAMS, LISP,# PYTHON, etc.... test-init.shcat >> configure.ac << 'END'AC_OUTPUTEND: > foo: > barcat > Makefile.am << 'END'bin_SCRIPTS = foodata_DATA = barEND$ACLOCAL$AUTOMAKE$AUTOCONF./configure --prefix="$(pwd)/inst"$MAKE uninstalltest ! -e instrm -rf inst$MAKE install-exectest -f inst/bin/foo || exit 99 # Sanity check.$MAKE uninstalltest ! -e inst/bin/foo$MAKE install-datatest -f inst/share/bar || exit 99 # Sanity check.$MAKE uninstalltest ! -e inst/share/barrm -rf inst$MAKE install-exectest -f inst/bin/foo || exit 99 # Sanity check.$MAKE uninstalltest ! -e inst/bin/foo:
 |