X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Finstdir-no-empty.sh;h=4c311e5751ac9812907e78307cdf0a39496af37f;hb=a7c00e1935726a32dca6871dd0f1b7eda28d0a5b;hp=f86365fe1c3413d8e747c43eeb00a9bbdb41990d;hpb=9465eb2651d9af30519882c4b583acc8ce91b8bb;p=platform%2Fupstream%2Fautomake.git diff --git a/t/instdir-no-empty.sh b/t/instdir-no-empty.sh old mode 100755 new mode 100644 index f86365f..4c311e5 --- a/t/instdir-no-empty.sh +++ b/t/instdir-no-empty.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2012 Free Software Foundation, Inc. +# Copyright (C) 2012-2013 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 @@ -17,7 +17,7 @@ # An empty "foo_PRIMARY" declaration should *not* cause "make install" # to create directory $(foodir). See automake bug#10997 and bug#11030. -. ./defs || Exit 1 +. test-init.sh cat >> configure.ac <<'END' AC_SUBST([CC], [whatever]) @@ -99,23 +99,24 @@ cwd=$(pwd) || fatal_ "getting current working directory" doinst () { - $MAKE install install-pdf install-ps install-dvi ${1+"$@"} + run_make install install-pdf install-ps install-dvi ${1+"$@"} } : > foo.sh ./configure --prefix="$cwd/inst" doinst -test ! -d inst || { find inst; Exit 1; } +test ! -e inst || { find inst; exit 1; } $MAKE uninstall -doinst bin_SCRIPTS=foo.sh AM_MAKEFLAGS='bin_SCRIPTS=foo.sh' +doinst bin_SCRIPTS=foo.sh test -f inst/bin/foo.sh -./configure -doinst DESTDIR="$cwd/dest" -test ! -d dest || { find dest; Exit 1; } +# Explicitly pass prefix to avoid spurious influences from +# global config.site scripts. +./configure --prefix="/usr/local" +test ! -e dest || { find dest; exit 1; } $MAKE uninstall -doinst DESTDIR="$cwd/dest" bin_SCRIPTS=foo.sh AM_MAKEFLAGS='bin_SCRIPTS=foo.sh' +doinst DESTDIR="$cwd/dest" bin_SCRIPTS=foo.sh test -f dest/usr/local/bin/foo.sh :