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 9A4E013988E for ; Sat, 22 Aug 2015 22:58:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6637142D4; Sat, 22 Aug 2015 22:58:03 +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 7A0B8142D4 for ; Sat, 22 Aug 2015 22:58:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24D513408D4 for ; Sat, 22 Aug 2015 22:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB9EF13F for ; Sat, 22 Aug 2015 22:57:52 +0000 (UTC) From: "Yuta SATOH" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yuta SATOH" Message-ID: <1440284264.9fe2f7f34c896fad111c7f05ae29d7bd840f7176.yuta_satoh@gentoo> Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ X-VCS-Repository: proj/gentoo-bsd X-VCS-Files: scripts/automatic_updater.sh X-VCS-Directories: scripts/ X-VCS-Committer: yuta_satoh X-VCS-Committer-Name: Yuta SATOH X-VCS-Revision: 9fe2f7f34c896fad111c7f05ae29d7bd840f7176 X-VCS-Branch: master Date: Sat, 22 Aug 2015 22:57:52 +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: cdc31f55-5c93-448c-9d51-8d29dae03e9b X-Archives-Hash: ac708794e4e10c0085d2f26f78ae8ddb commit: 9fe2f7f34c896fad111c7f05ae29d7bd840f7176 Author: Yuta SATOH gentoo gr jp> AuthorDate: Sat Aug 22 22:57:44 2015 +0000 Commit: Yuta SATOH gentoo gr jp> CommitDate: Sat Aug 22 22:57:44 2015 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=9fe2f7f3 automatic_updater.sh: Set the correct TARGETVER in set_profile. scripts/automatic_updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/automatic_updater.sh b/scripts/automatic_updater.sh index 3749286..0ab1f22 100755 --- a/scripts/automatic_updater.sh +++ b/scripts/automatic_updater.sh @@ -15,9 +15,9 @@ fi set_profile(){ emerge --info | head -n 1 | grep clang && : if [[ $? -eq 0 ]] ; then - eselect profile set $(eselect profile list | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1) + eselect profile set $(eselect profile list | grep "${TARGETVER}" | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1) else - eselect profile set $(eselect profile list | grep -v clang | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1) + eselect profile set $(eselect profile list | grep "${TARGETVER}" | grep -v clang | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1) fi }