From patchwork Fri Apr 5 20:44:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 234282 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 8FD662C0132 for ; Sat, 6 Apr 2013 07:45:34 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=fLHIT6O59D3hbyQSU/nBjLoFQm0HsJjWUC21tFwpbSXDx9+4TejVx UzQ4ZuhCmfrlTeolMX9LUEhgMzEXX9N5uOylqD8wMEV3HQ453Y74Y04ULUvs31St y2gzDVE88Vq24L3ir+wYqAyjHos/6UiPMFvydPbaswdhGQ3SbpA9lw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=nTMydAZSnDYJUJwlrpo49WadWgE=; b=C9gCVHC41semXc7kVKoJ 36Y/eW6Pr1R7kG3JhIOM8ISVWUJalAr2zPkl7eg5Seoo1V66o0PuYUTmBWUb6unu +q3rQCh0r5K7is0IbOL5i+kiTfIEru7xdQVmVZdeieGJaBkAL6yNIPKSOCq4VSwS qi7jjb3yn/Se5EB3OQMeCtg= Received: (qmail 6845 invoked by alias); 5 Apr 2013 20:45:28 -0000 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 Received: (qmail 6827 invoked by uid 89); 5 Apr 2013 20:45:27 -0000 X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, TW_PD, URI_NOVOWEL autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Apr 2013 20:45:23 +0000 Received: from [10.72.190.141] (178.115.250.141.wireless.dyn.drei.com [178.115.250.141]) by ainaz.pair.com (Postfix) with ESMTPSA id AEBD13F410; Fri, 5 Apr 2013 16:45:18 -0400 (EDT) Date: Fri, 5 Apr 2013 22:44:21 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, Benjamin De Kosnik , Jonathan Wakely Subject: maintainer-scripts/update_web_docs_libstdcxx_svn: add error detection Message-ID: MIME-Version: 1.0 So, I was debugging why the nightly run of this script did not actually every update anything. As part of that I manually ran the script on gcc.gnu.org. Let's say the output was not particularly helpful. ;-) This patch addresses that and does not simply ignore _all_ output any more, plus it explicitly issues an error message if there was any problem. http://gcc.gnu.org/ml/gccadmin/2013-q2/msg00004.html shows exemplary output. I have not committed this yet, but plan on doing that unless there are any objections. Thoughts? Gerald 2013-04-05 Gerald Pfeifer * update_web_docs_libstdcxx_svn: No longer ignore all output from the actual copy process. Check the exit code of the actual copy process; diagnose problems. Index: update_web_docs_libstdcxx_svn =================================================================== --- update_web_docs_libstdcxx_svn (revision 197262) +++ update_web_docs_libstdcxx_svn (working copy) @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # "sh update_web_docs_libstdcxx.sh" @@ -39,8 +39,13 @@ # copy the tree to the onlinedocs area, preserve directory structure #find . -depth -print | cpio -pdv $WWWDIR -find . -depth -print | cpio -pd $WWWDIR > /dev/null 2>&1 +find . -depth -print | cpio -pd $WWWDIR 2>&1 | grep -v "newer or same age version exists" +err=${PIPESTATUS[1]} +if [ $err -gt 0 ]; then + printf "\nCopying failed with error code %d.\n" $err +fi + cd / /bin/rm -rf $WORKDIR