pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/scripts Removed setargs_from_cmd, as it is unused.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf61ed623040
branches:  trunk
changeset: 520459:bf61ed623040
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Oct 22 00:35:26 2006 +0000

description:
Removed setargs_from_cmd, as it is unused.

diffstat:

 mk/scripts/shell-lib |  13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diffs (24 lines):

diff -r dfb5cc6d4e9f -r bf61ed623040 mk/scripts/shell-lib
--- a/mk/scripts/shell-lib      Sun Oct 22 00:14:17 2006 +0000
+++ b/mk/scripts/shell-lib      Sun Oct 22 00:35:26 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shell-lib,v 1.3 2005/08/24 21:51:10 rillig Exp $
+# $NetBSD: shell-lib,v 1.4 2006/10/22 00:35:26 rillig Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -383,14 +383,3 @@
                return 1
        fi
 }
-
-######################################################################
-# $setargs_from_cmd
-#      Run $cmd and initialize the $@ array with the lines from that
-#      command.
-# usage:
-#      cmd="echo *"; eval "${setargs_from_cmd}"
-#      for i in "$@"; do echo "($i)"; done
-######################################################################
-setargs_from_cmd='saved_IFS="${IFS}"; IFS="
-"; set args `eval "${cmd}"`; IFS="${saved_IFS}"; shift'



Home | Main Index | Thread Index | Old Index