Date: Tue, 15 Jun 2010 18:11:37 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209207 - head/tools/tools/nanobsd Message-ID: <201006151811.o5FIBbjA054783@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Jun 15 18:11:37 2010 New Revision: 209207 URL: http://svn.freebsd.org/changeset/base/209207 Log: make these convenience functions more convenient by accepting all args, not just the first. makes mechanical conversion of old style more forgiving. MFC after: 3 days Modified: head/tools/tools/nanobsd/nanobsd.sh Modified: head/tools/tools/nanobsd/nanobsd.sh ============================================================================== --- head/tools/tools/nanobsd/nanobsd.sh Tue Jun 15 17:28:16 2010 (r209206) +++ head/tools/tools/nanobsd/nanobsd.sh Tue Jun 15 18:11:37 2010 (r209207) @@ -650,19 +650,19 @@ cust_pkg () ( ####################################################################### # Convenience function: -# Register $1 as customize function. +# Register all args as customize function. customize_cmd () { - NANO_CUSTOMIZE="$NANO_CUSTOMIZE $1" + NANO_CUSTOMIZE="$NANO_CUSTOMIZE $*" } ####################################################################### # Convenience function: -# Register $1 as late customize function to run just before +# Register all args as late customize function to run just before # image creation. late_customize_cmd () { - NANO_LATE_CUSTOMIZE="$NANO_LATE_CUSTOMIZE $1" + NANO_LATE_CUSTOMIZE="$NANO_LATE_CUSTOMIZE $*" } #######################################################################
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006151811.o5FIBbjA054783>