pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/pkgformat/pkg
Module Name: pkgsrc
Committed By: jlam
Date: Sun Oct 1 17:57:18 UTC 2017
Modified Files:
pkgsrc/mk/pkgformat/pkg: reduce-depends.awk
Log Message:
reduce-depends.awk: Avoid gensub() for portability.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/mk/pkgformat/pkg/reduce-depends.awk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/pkgformat/pkg/reduce-depends.awk
diff -u pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.5 pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.6
--- pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.5 Sun Oct 1 04:00:40 2017
+++ pkgsrc/mk/pkgformat/pkg/reduce-depends.awk Sun Oct 1 17:57:18 2017
@@ -1,6 +1,6 @@
#!/usr/bin/awk -f
#
-# $NetBSD: reduce-depends.awk,v 1.5 2017/10/01 04:00:40 jlam Exp $
+# $NetBSD: reduce-depends.awk,v 1.6 2017/10/01 17:57:18 jlam Exp $
#
# Copyright (c) 2006-2017 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -111,7 +111,7 @@ function get_endpoint(cmp, patterns, en
endpoint = "" # return value if patterns array is empty
for (key in patterns) {
endpoint = patterns[key]
- pkg = shquote(gensub(cmp, "-", 1, key))
+ pkg = key; sub(cmp, "-", pkg); pkg = shquote(pkg)
match_all = 1
for (pattern in patterns) {
if (key == pattern) continue
Home |
Main Index |
Thread Index |
Old Index