pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Added transform_to_and_split(), which remov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0e88be32920
branches:  trunk
changeset: 522003:a0e88be32920
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 30 11:40:24 2006 +0000

description:
Added transform_to_and_split(), which removes the need for the
compiler-specific transformations to access the split_arg variable
directly.

diffstat:

 mk/wrapper/wrapper-subr.sh |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 5a3830221286 -r a0e88be32920 mk/wrapper/wrapper-subr.sh
--- a/mk/wrapper/wrapper-subr.sh        Thu Nov 30 11:40:14 2006 +0000
+++ b/mk/wrapper/wrapper-subr.sh        Thu Nov 30 11:40:24 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: wrapper-subr.sh,v 1.4 2006/11/26 09:55:52 rillig Exp $
+# $NetBSD: wrapper-subr.sh,v 1.5 2006/11/30 11:40:24 rillig Exp $
 #
 # This file contains shell functions that are useful to the wrapper
 # scripts.
@@ -16,6 +16,14 @@
        addtocache=yes
 }
 
+# usage: transform_to_and_split "newarg"
+transform_to_and_split() {
+       arg="$1"
+       $debug_log $wrapperlog "    ($wrapsubr_name) to: $1 [split]"
+       addtocache=yes
+       split_arg=yes
+}
+
 # usage: transform_to_nocache "newarg"
 transform_to_nocache() {
        arg="$1"



Home | Main Index | Thread Index | Old Index