pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk Fixed computation of the .broken file, which h...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5965fe5d2d8a
branches:  trunk
changeset: 502695:5965fe5d2d8a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Nov 08 13:55:29 2005 +0000

description:
Fixed computation of the .broken file, which had been "./dev/null" when the
program was invoked without arguments.

diffstat:

 mk/bulk/printindex |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r c432b227f689 -r 5965fe5d2d8a mk/bulk/printindex
--- a/mk/bulk/printindex        Tue Nov 08 13:52:58 2005 +0000
+++ b/mk/bulk/printindex        Tue Nov 08 13:55:29 2005 +0000
@@ -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 @@
                        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



Home | Main Index | Thread Index | Old Index