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 968941381F3 for ; Sat, 17 Aug 2013 16:52:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40EF0E0AE9; Sat, 17 Aug 2013 16:52:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCFA1E0AE9 for ; Sat, 17 Aug 2013 16:52:10 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A5D6C33EB48 for ; Sat, 17 Aug 2013 16:52:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F1A9BE468F for ; Sat, 17 Aug 2013 16:52:06 +0000 (UTC) From: "Raúl Porcel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Raúl Porcel" Message-ID: <1376758314.6cfdd7f82b3519b47026f532fb9bf94321d2d2f8.armin76@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: scripts/ X-VCS-Repository: proj/releng X-VCS-Files: scripts/copy_buildsync.sh X-VCS-Directories: scripts/ X-VCS-Committer: armin76 X-VCS-Committer-Name: Raúl Porcel X-VCS-Revision: 6cfdd7f82b3519b47026f532fb9bf94321d2d2f8 X-VCS-Branch: master Date: Sat, 17 Aug 2013 16:52:06 +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: 720972db-30fb-41c9-b7ec-b646b2810dab X-Archives-Hash: cfd3308ad964ef8a67af58967e4892ca commit: 6cfdd7f82b3519b47026f532fb9bf94321d2d2f8 Author: Raúl Porcel gentoo org> AuthorDate: Sat Aug 17 16:51:54 2013 +0000 Commit: Raúl Porcel gentoo org> CommitDate: Sat Aug 17 16:51:54 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=6cfdd7f8 Narrow the regex a bit so f.ex stage3-amd64-nomultilib doesn't show up in latest-stage3-amd4.txt --- scripts/copy_buildsync.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh index 4375a3d..6b3f83f 100755 --- a/scripts/copy_buildsync.sh +++ b/scripts/copy_buildsync.sh @@ -88,8 +88,7 @@ for ARCH in $ARCHES; do variants="$(find 20* \( -iname '*.iso' -o -iname '*.tar.bz2' \) -printf '%f\n' |sed -e 's,-20[012][0-9]\{5\}.*,,g' -r | sort | uniq)" echo -n '' >"${tmpdir}"/.keep.${ARCH}.txt for v in $variants ; do - #date_variant=$(find 20* -iname "${v}*" \( -name '*.tar.bz2' -o -iname '*.iso' \) -printf '%h\n' | sed -e "s,.*/$a/autobuilds/,,g" -e 's,/.*,,g' |sort -n | tail -n1 ) - variant_path=$(find 20* -iname "${v}-*" \( -name '*.tar.bz2' -o -iname '*.iso' \) -print | sed -e "s,.*/$a/autobuilds/,,g" | sort -k1,1 -t/ | tail -n1 ) + variant_path=$(find 20* -iname "${v}-20*" \( -name '*.tar.bz2' -o -iname '*.iso' \) -print | sed -e "s,.*/$a/autobuilds/,,g" | sort -k1,1 -t/ | tail -n1 ) f="latest-${v}.txt" echo -e "${header}" >"${f}" echo -e "${variant_path}" >>${f}