From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Jdugb-0002vY-0h for garchives@archives.gentoo.org; Mon, 24 Mar 2008 21:58:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E77BE0558; Mon, 24 Mar 2008 21:58:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 59CD1E0558 for ; Mon, 24 Mar 2008 21:58:32 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id EAD8266936 for ; Mon, 24 Mar 2008 21:58:31 +0000 (UTC) Received: from vapier by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JdugY-0004lL-S6 for gentoo-commits@lists.gentoo.org; Mon, 24 Mar 2008 21:58:30 +0000 From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/openrc: openrc-9999.ebuild X-VCS-Repository: gentoo-x86 X-VCS-Files: openrc-9999.ebuild X-VCS-Directories: sys-apps/openrc X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: Sender: Mike Frysinger Date: Mon, 24 Mar 2008 21:58:30 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0c9f5d45-a587-4bf0-9f22-b29d55f7af73 X-Archives-Hash: f4766f32412d0df3fe8b4f8711faab53 vapier 08/03/24 21:58:30 Modified: openrc-9999.ebuild Log: handle module arguments (Portage version: 2.2_pre5) Revision Changes Path 1.5 sys-apps/openrc/openrc-9999.ebuild file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/op= enrc-9999.ebuild?rev=3D1.5&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/op= enrc-9999.ebuild?rev=3D1.5&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/op= enrc-9999.ebuild?r1=3D1.4&r2=3D1.5 Index: openrc-9999.ebuild =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- openrc-9999.ebuild 24 Mar 2008 07:30:18 -0000 1.4 +++ openrc-9999.ebuild 24 Mar 2008 21:58:30 -0000 1.5 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v = 1.4 2008/03/24 07:30:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v = 1.5 2008/03/24 21:58:30 vapier Exp $ =20 inherit eutils flag-o-matic multilib toolchain-funcs =20 @@ -135,13 +135,24 @@ v=3D${f##*/} v=3D${v#kernel-} v=3D${v//[^[:alnum:]]/_} - ( - printf "\n### START: Auto-converted from ${f##*/}\n\n" - sed \ - -e "/^[^#]/s:^\(.*\)$:modules_${v}=3D\"\${modules_${v}} \1\":" \ - "${f}" - printf "\n### END: Auto-converted from ${f##*/}\n\n" - ) >> "${D}"/etc/conf.d/modules + gawk -v v=3D"${v}" -v f=3D"${f##*/}" ' + BEGIN { print "\n### START: Auto-converted from " f "\n" } + { + if ($0 ~ /^[^#]/) { + print "modules_" v "=3D\"${modules_" v "} " $1 "\"" + gsub(/[^[:alnum:]]/, "_", $1) + printf "module_" $1 "_args=3D\"" + for (i =3D 2; i <=3D NF; ++i) { + if (i > 2) + printf " " + printf $i + } + print "\"\n" + } else + print + } + END { print "\n### END: Auto-converted from " f "\n" } + ' "${f}" >> "${D}"/etc/conf.d/modules rm -f "${f}" done rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null --=20 gentoo-commits@lists.gentoo.org mailing list