From patchwork Thu Apr 21 11:36:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 92398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8143BB6FD3 for ; Thu, 21 Apr 2011 21:37:23 +1000 (EST) Received: (qmail 8094 invoked by alias); 21 Apr 2011 11:37:19 -0000 Received: (qmail 7988 invoked by uid 22791); 21 Apr 2011 11:37:18 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, TW_BF, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Apr 2011 11:36:55 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 11FAE90975; Thu, 21 Apr 2011 13:36:53 +0200 (CEST) Date: Thu, 21 Apr 2011 13:36:53 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Cc: Jakub Jelinek , "Joseph S. Myers" , Mark Mitchell Subject: [PATCH] Fix gcc_release to not build GO tarballs on old branches Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This changes maybe_build_tarfile to require that the first directory in the list actually exists. This avoids building a GO tarball on old branches where neither gcc/go nor libgo exist but libffi does. I have built the 4.5.3 release candidate with this patch applied. Looks ok? Thanks, Richard. 2011-04-21 Richard Guenther * gcc_release (maybe_build_tarfile): Require existance of the first directory. Index: maintainer-scripts/gcc_release =================================================================== --- maintainer-scripts/gcc_release (revision 172819) +++ maintainer-scripts/gcc_release (working copy) @@ -258,6 +258,7 @@ maybe_build_tarfile() { if [ -d "$maybe_dir" ]; then dir_exists=1 fi + break; done if [ $dir_exists = 1 ]; then build_tarfile "$dest" "$@"