pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/plist SUS says awk's delete command only deletes ar...
details: https://anonhg.NetBSD.org/pkgsrc/rev/39000c896bc5
branches: trunk
changeset: 506825:39000c896bc5
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Jan 22 16:54:13 2006 +0000
description:
SUS says awk's delete command only deletes array elements, not the array
itself.
diffstat:
mk/plist/plist-man.awk | 4 +---
mk/plist/plist-subst.awk | 3 +--
2 files changed, 2 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 38ef5574b248 -r 39000c896bc5 mk/plist/plist-man.awk
--- a/mk/plist/plist-man.awk Sun Jan 22 16:46:32 2006 +0000
+++ b/mk/plist/plist-man.awk Sun Jan 22 16:54:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: plist-man.awk,v 1.1 2006/01/12 23:43:57 jlam Exp $
+# $NetBSD: plist-man.awk,v 1.2 2006/01/22 16:54:13 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -89,7 +89,6 @@
section = substr(components[n-1], 4, 1)
sub("[0-9ln]$", section, components[n])
$0 = join(components, 1, n, "/")
- delete components
}
(IMAKE_MANINSTALL == "maninstall") && \
/^@dirrm ([^\/]*\/)+cat[1-9ln]/ {
@@ -107,7 +106,6 @@
section = "0"
sub("[0-9ln]$", section, components[n])
$0 = join(components, 1, n, "/")
- delete components
}
(IMAKE_MANINSTALL == "catinstall") && \
/^@dirrm ([^\/]*\/)+man[1-9ln]/ {
diff -r 38ef5574b248 -r 39000c896bc5 mk/plist/plist-subst.awk
--- a/mk/plist/plist-subst.awk Sun Jan 22 16:46:32 2006 +0000
+++ b/mk/plist/plist-subst.awk Sun Jan 22 16:54:13 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: plist-subst.awk,v 1.1 2006/01/12 23:43:57 jlam Exp $
+# $NetBSD: plist-subst.awk,v 1.2 2006/01/22 16:54:13 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -52,7 +52,6 @@
regexp = "\\${" var "}"
substitute[regexp] = value
}
- delete vars
}
###
Home |
Main Index |
Thread Index |
Old Index