summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-05-17 14:54:45 +0000
committerjschauma <jschauma>2004-05-17 14:54:45 +0000
commit304556bb8347a801302b009f1ced785a28ea35d2 (patch)
treec5b2d2afef6ff1faf813649e343a76c89e01c46b /bootstrap
parent76001424412e751b324514a1e84cd79d6f639833 (diff)
downloadpkgsrc-304556bb8347a801302b009f1ced785a28ea35d2.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')
-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