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 0E94E1381F3 for ; Thu, 18 Apr 2013 08:33:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F5E6E09C0; Thu, 18 Apr 2013 08:33:22 +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 C5D4FE09C0 for ; Thu, 18 Apr 2013 08:33:21 +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 ACEDF33D3D3 for ; Thu, 18 Apr 2013 08:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 11780E4306 for ; Thu, 18 Apr 2013 08:33:19 +0000 (UTC) From: "Jorge Manuel B. S. Vicetto" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jorge Manuel B. S. Vicetto" Message-ID: <1366272290.08c9ca74d61cba28bec59cedcf84a19fe1899d82.jmbsvicetto@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: jmbsvicetto X-VCS-Committer-Name: Jorge Manuel B. S. Vicetto X-VCS-Revision: 08c9ca74d61cba28bec59cedcf84a19fe1899d82 X-VCS-Branch: master Date: Thu, 18 Apr 2013 08:33:19 +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: 09d183f6-7a52-42a2-b597-49fe44ac494c X-Archives-Hash: 45edc07e935c801024160fcede27ac38 commit: 08c9ca74d61cba28bec59cedcf84a19fe1899d82 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) gentoo org> AuthorDate: Thu Apr 18 08:04:50 2013 +0000 Commit: Jorge Manuel B. S. Vicetto gentoo org> CommitDate: Thu Apr 18 08:04:50 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=08c9ca74 Whitespace. --- scripts/copy_buildsync.sh | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh index 3d998e6..4375a3d 100755 --- a/scripts/copy_buildsync.sh +++ b/scripts/copy_buildsync.sh @@ -62,11 +62,11 @@ for ARCH in $ARCHES; do latest_iso_date="$(echo -e "${iso_list}" |awk '{print $1}' |cut -d/ -f1 | tail -n1)" latest_stage3_date="$(echo -e "${stage3_list}" |awk '{print $1}' |cut -d/ -f1 | tail -n1)" header="$(echo -e "# Latest as of $(date -uR)\n# ts=$(date -u +%s)")" - + # Do not remove this [ -z "${latest_iso_date}" ] && latest_iso_date="NONE-FOUND" [ -z "${latest_stage3_date}" ] && latest_stage3_date="NONE-FOUND" - + if [ -n "${iso_list}" ]; then echo -e "${header}" >"${OUT_ISO}" echo -e "${iso_list}" |awk '{print $3}' | grep "$latest_iso_date" >>${OUT_ISO} @@ -83,11 +83,11 @@ for ARCH in $ARCHES; do ln -sf "$latest_stage3_date" current-stage3 fi fi - + # new variant preserve code 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 + 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 ) f="latest-${v}.txt" @@ -96,7 +96,7 @@ for ARCH in $ARCHES; do rm -f "current-$v" ln -sf "${variant_path%/*}" "current-$v" echo "${variant_path}" | sed -e 's,/.*,,g' -e 's,^,/,g' -e 's,$,$,g' >>"${tmpdir}"/.keep.${ARCH}.txt - done + done #echo "$date_variant" \ #| sort | uniq | sed -e 's,^,/,g' -e 's,$,$,g' >"${tmpdir}"/.keep.${ARCH}.txt @@ -115,7 +115,7 @@ for ARCH in $ARCHES; do $DEBUGP rm $VERBOSEP -rf $(pwd)/${i} done - + $DEBUGP rm $VERBOSEP -rf ${tmpdir} else