]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: avoid a spurious failure on OpenIndiana
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 20:49:00 +0000 (22:49 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 20:49:00 +0000 (22:49 +0200)
* t/autodist.sh: Ensure that the 'install-sh' script has legit content,
because it's going to be used by the "make distdir" target on systems
lacking a decent 'install' program.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/autodist.sh

index 0f6c2de253cc7ea5866cbe7e172c04b84805c8c8..6bc5fb3e887c8b17b922956ec52e2e0156818096 100755 (executable)
@@ -88,9 +88,15 @@ rm -rf $me-1.0          # Remove $(distdir).
 
 : > distfiles.am
 for f in $list; do
-  echo dummy > $f
+  test "$f" = install-sh || echo dummy > $f
 done
 
+# The 'install-sh' script must have legit content, because it's going
+# to be used by the "make distdir" target on systems lacking a decent
+# 'install' program.
+cp "$am_scriptdir/install-sh" . \
+  || fatal_ "fetching auxiliary script 'install-sh'"
+
 ls -l # For debugging.
 
 $AUTOMAKE