pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Renamed transform_pass_unknown to transform...
details: https://anonhg.NetBSD.org/pkgsrc/rev/63cbafe1f607
branches: trunk
changeset: 521888:63cbafe1f607
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Nov 26 09:55:52 2006 +0000
description:
Renamed transform_pass_unknown to transform_pass_with_warning and added
transform_discard_with_warning.
diffstat:
mk/wrapper/transform-sunpro-cc | 4 ++--
mk/wrapper/wrapper-subr.sh | 17 +++++++++++++----
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 8945c0dc7094 -r 63cbafe1f607 mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc Sun Nov 26 09:13:44 2006 +0000
+++ b/mk/wrapper/transform-sunpro-cc Sun Nov 26 09:55:52 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.15 2006/11/11 07:50:28 rillig Exp $
+# $NetBSD: transform-sunpro-cc,v 1.16 2006/11/26 09:55:52 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -151,6 +151,6 @@
transform_pass
;;
-*)
- transform_pass_unknown
+ transform_pass_with_warning
;;
esac
diff -r 8945c0dc7094 -r 63cbafe1f607 mk/wrapper/wrapper-subr.sh
--- a/mk/wrapper/wrapper-subr.sh Sun Nov 26 09:13:44 2006 +0000
+++ b/mk/wrapper/wrapper-subr.sh Sun Nov 26 09:55:52 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: wrapper-subr.sh,v 1.3 2006/11/26 09:13:44 rillig Exp $
+# $NetBSD: wrapper-subr.sh,v 1.4 2006/11/26 09:55:52 rillig Exp $
#
# This file contains shell functions that are useful to the wrapper
# scripts.
@@ -28,13 +28,22 @@
transform_to ""
}
+# usage: transform_discard_with_warning [warning]
+transform_discard_with_warning() {
+ _warning=${1-"discarding option $arg"}
+ msg_log "$wrapperlog" "WARNING: [$wrapsubr_name] $_warning"
+ transform_to ""
+ addtocache=no
+}
+
# usage: transform_pass
transform_pass() {
addtocache=yes
}
-# usage: transform_pass_unknown
-transform_pass_unknown() {
- msg_log "$wrapperlog" "[$wrapsubr_name] warning: unknown option $arg"
+# usage: transform_pass_with_warning [warning]
+transform_pass_with_warning() {
+ _warning=${1-"passing option $arg"}
+ msg_log "$wrapperlog" "WARNING: [$wrapsubr_name] $_warning"
addtocache=no
}
Home |
Main Index |
Thread Index |
Old Index