From 44f97c6899e0e4f6219f338972d56475faa376a5 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Wed, 4 Apr 2007 05:33:47 +0000 Subject: [PATCH] Use --preserve-timestamps only if available. --- v7/dist/make-src-files | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v7/dist/make-src-files b/v7/dist/make-src-files index ba99538dd..caa05a0c2 100755 --- a/v7/dist/make-src-files +++ b/v7/dist/make-src-files @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: make-src-files,v 1.26 2007/01/20 03:50:06 cph Exp $ +# $Id: make-src-files,v 1.27 2007/04/04 05:33:47 riastradh Exp $ # # Copyright 2000,2001,2002,2003,2005,2006 Massachusetts Institute of Technology # @@ -30,7 +30,9 @@ else exit 1 fi -INSTALL="install --preserve-timestamps" +INSTALL="install" +FOO=$(${INSTALL} --help 2> /dev/null | fgrep -e --preserve-timestamps) +[ -n "${FOO}" ] && INSTALL="${INSTALL} --preserve-timestamps" INSTALL_DATA="${INSTALL} -m 644" if [ "${VERSION}" = "snapshot" ]; then -- 2.25.1