From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7E76E13838B for ; Fri, 26 Sep 2014 16:59:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AC6DE0B85; Fri, 26 Sep 2014 16:59:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4AE59E0B85 for ; Fri, 26 Sep 2014 16:59:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CECEC34025B for ; Fri, 26 Sep 2014 16:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D9AF6564 for ; Fri, 26 Sep 2014 16:59:36 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1411750766.bb51963e6876cd3be95e938b867e1cf197138fc9.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: Documentation/maintainers/ X-VCS-Repository: proj/kde X-VCS-Files: Documentation/maintainers/bump-from-set.sh Documentation/maintainers/drop-from-set.sh X-VCS-Directories: Documentation/maintainers/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: bb51963e6876cd3be95e938b867e1cf197138fc9 X-VCS-Branch: master Date: Fri, 26 Sep 2014 16:59:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 899161aa-ac12-44c0-a8c9-784fced9e3ff X-Archives-Hash: ce6179ec52ba61efdddf440a3f53c8ff commit: bb51963e6876cd3be95e938b867e1cf197138fc9 Author: Michael Palimaka gentoo org> AuthorDate: Fri Sep 26 16:59:26 2014 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Fri Sep 26 16:59:26 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bb51963e [Documentation/maintainers] Simplify set reading function. --- Documentation/maintainers/bump-from-set.sh | 6 +----- Documentation/maintainers/drop-from-set.sh | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Documentation/maintainers/bump-from-set.sh b/Documentation/maintainers/bump-from-set.sh index 8758a5c..0745930 100755 --- a/Documentation/maintainers/bump-from-set.sh +++ b/Documentation/maintainers/bump-from-set.sh @@ -9,11 +9,7 @@ get_package_list_from_set() { local SET="${1}" - IFS=$'\n' - for entry in $(cat "${PORTDIR}/sets/${SET}") ; do - if [[ ${entry} == \#* || ${entry} == @* ]] ; then - continue - fi + for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/") done diff --git a/Documentation/maintainers/drop-from-set.sh b/Documentation/maintainers/drop-from-set.sh index 5645c78..3267811 100755 --- a/Documentation/maintainers/drop-from-set.sh +++ b/Documentation/maintainers/drop-from-set.sh @@ -9,9 +9,6 @@ get_package_list_from_set() { local SET="${1}" for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do - if [[ ${entry} == \#* || ${entry} == @* ]] ; then - continue - fi echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/") done