summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-08 13:55:29 +0000
committerrillig <rillig@pkgsrc.org>2005-11-08 13:55:29 +0000
commitddb21fb644c780f4e45e9ce09d4e2f6cf9c3224f (patch)
tree7e2f6a3f52ca8998de4671fb7570860c5d5f3988 /mk
parent2494eec21a9919b44ce475c78b1d0d0380f7f5b7 (diff)
downloadpkgsrc-ddb21fb644c780f4e45e9ce09d4e2f6cf9c3224f.tar.gz
Fixed computation of the .broken file, which had been "./dev/null" when the
program was invoked without arguments.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/printindex8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
index dce0d6d7097..3b39932c1e1 100644
--- a/mk/bulk/printindex
+++ b/mk/bulk/printindex
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: printindex,v 1.18 2005/11/05 18:34:45 rillig Exp $
+# $NetBSD: printindex,v 1.19 2005/11/08 13:55:29 rillig Exp $
#
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -116,16 +116,16 @@ for pkgdir in $list :detect_duplicates: $BULK_PREREQ; do
echo "$0: error: could not extract PKGNAME for ${pkgdir} -- skipping." 1>&2
case $have_brokenbasedir in
- yes) brokendir="${brokenbasedir}/${pkgdir}"
+ yes) broken_path="${brokenbasedir}/${pkgdir}/${brokenfile}"
${MKDIR} "${brokendir}"
;;
- *) brokendir="."
+ *) broken_path="${brokenfile}"
;;
esac
{ echo "===> ${BMAKE} show-var VARNAME=PKGNAME failed"
${BMAKE} show-var VARNAME=PKGNAME || true
- } >> "${brokendir}/${brokenfile}" 2>&1
+ } >> "${broken_path}" 2>&1
fi
fi
done