summaryrefslogtreecommitdiff
path: root/bootstrap/files
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-17 14:54:45 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-17 14:54:45 +0000
commit4f077d1ac26d47e578ddb3cffc952e528ec5a1b3 (patch)
treec5b2d2afef6ff1faf813649e343a76c89e01c46b /bootstrap/files
parent3b675ac59e7c3a71a72fe6ccce1ee5b3f0a0c79f (diff)
downloadpkgsrc-4f077d1ac26d47e578ddb3cffc952e528ec5a1b3.tar.gz
install(1) allows for installing /dev/null to create an empty file,
so let's do this here, too. This should address PR pkg/25313.
Diffstat (limited to 'bootstrap/files')
-rwxr-xr-xbootstrap/files/install-sh.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/files/install-sh.in b/bootstrap/files/install-sh.in
index 7976e801d30..168ca5419e1 100755
--- a/bootstrap/files/install-sh.in
+++ b/bootstrap/files/install-sh.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: install-sh.in,v 1.1 2004/04/23 02:03:18 tv Exp $
+# $NetBSD: install-sh.in,v 1.2 2004/05/17 14:54:45 jschauma Exp $
# This script now also installs multiple files, but might choke on installing
# multiple files with spaces in the file names.
#
@@ -151,6 +151,9 @@ else
then
echo "install: $src: not a regular file"
exit 1
+ elif [ x"$src" = x"/dev/null" ]
+ then
+ instcmd="$cpprog"
else
echo "install: $src does not exist"
exit 1