summaryrefslogtreecommitdiff
path: root/pkgtools/bootstrap-extras/files
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-07-01 23:27:43 +0000
committertnn <tnn@pkgsrc.org>2007-07-01 23:27:43 +0000
commit0234d40e0a6d9ba2108fc86e59a50c72ad5afa5d (patch)
tree607f4ce224778db6ffb3444a06c639ad9cfaf82d /pkgtools/bootstrap-extras/files
parent79dab0a3c6935eee35c736b291385490eadbcdfa (diff)
downloadpkgsrc-0234d40e0a6d9ba2108fc86e59a50c72ad5afa5d.tar.gz
xargs(1) on Interix is broken. It executes the utility on the command line
even if standard input is the empty string. Install a wrapper script bundled with pkgtools/bootstrap-extras to deal with this. This is an attempt at a permanent workaround for the problem described in PR pkg/25777 which has regressed since it was initially fixed. We can now bootstrap again on Interix 3.5.
Diffstat (limited to 'pkgtools/bootstrap-extras/files')
-rw-r--r--pkgtools/bootstrap-extras/files/xargs-sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgtools/bootstrap-extras/files/xargs-sh b/pkgtools/bootstrap-extras/files/xargs-sh
new file mode 100644
index 00000000000..2c961548378
--- /dev/null
+++ b/pkgtools/bootstrap-extras/files/xargs-sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+#
+# $NetBSD: xargs-sh,v 1.1 2007/07/01 23:27:43 tnn Exp $
+#
+# xargs(1) on Interix is broken. It executes the utility on the command line
+# even if standard input is the empty string.
+
+d="`/bin/cat`"
+if [ "$d" != "" ]
+then
+echo "$d" | /bin/xargs $@
+exit $?
+fi