From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18732 invoked by alias); 5 Nov 2012 11:06:53 -0000 Received: (qmail 18719 invoked by uid 22791); 5 Nov 2012 11:06:52 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Nov 2012 11:06:44 +0000 Received: from md16.u-strasbg.fr (md16.u-strasbg.fr [130.79.200.206]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qA5B6bWb030368 ; Mon, 5 Nov 2012 12:06:37 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms11.u-strasbg.fr [130.79.204.111]) by md16.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qA5B6aEE032278 ; Mon, 5 Nov 2012 12:06:37 +0100 (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qA5B6aMX015195 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Mon, 5 Nov 2012 12:06:36 +0100 (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Tom Tromey'" Cc: References: <11045.9555559375$1351807023@news.gmane.org> <87a9uzq5j1.fsf@fleche.redhat.com> In-Reply-To: <87a9uzq5j1.fsf@fleche.redhat.com> Subject: [RFA-v2] contrib/ari: Avoid permission issue for script Date: Mon, 05 Nov 2012 11:06:00 -0000 Message-ID: <003001cdbb45$9ed5c640$dc8152c0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00082.txt.bz2 > Pierre> I can lift the problem for the main script, > Pierre> by calling it using: > Pierre> sh ../../src/gdb/contrib/ari/ create-web-ari-in-src.sh, > Pierre> but this script calls update-web-ari.sh script > Pierre> without using '. script'... > > I think you probably want $SHELL rather than '.' here. > '.' runs it in the current shell, but the previous code launched a new > shell. You are right of course. Here is a new version of the patch. > Pierre> Should I add myself as contrib/ari maintainer? > > Sure. Submitted as a seperate thread. ChangeLog entry: 2012-11-05 Pierre Muller * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script is not executable. Index: create-web-ari-in-src.sh =================================================================== RCS file: /cvs/src/src/gdb/contrib/ari/create-web-ari-in-src.sh,v retrieving revision 1.3 diff -u -r1.3 create-web-ari-in-src.sh --- create-web-ari-in-src.sh 2 Nov 2012 18:19:36 -0000 1.3 +++ create-web-ari-in-src.sh 5 Nov 2012 11:03:29 -0000 @@ -67,7 +67,7 @@ fi # Launch update-web-ari.sh in same directory as current script. -${scriptpath}/update-web-ari.sh ${srcdir} ${tempdir} ${webdir} gdb +${SHELL} ${scriptpath}/update-web-ari.sh ${srcdir} ${tempdir} ${webdir} gdb if [ -f "${webdir}/index.html" ] ; then echo "ARI output can be viewed in file \"${webdir}/index.html\""