Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 76762 invoked from network); 11 Sep 2004 23:30:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Sep 2004 23:30:04 -0000 Received: (qmail 71641 invoked by uid 500); 11 Sep 2004 23:29:57 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 71563 invoked by uid 500); 11 Sep 2004 23:29:57 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 71526 invoked by uid 99); 11 Sep 2004 23:29:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [208.42.156.2] (HELO conn.mc.mpls.visi.com) (208.42.156.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 11 Sep 2004 16:29:55 -0700 Received: from sweetums.wibdio.net (c-66-41-158-180.mn.client2.attbi.com [66.41.158.180]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 028FD848A for ; Sat, 11 Sep 2004 18:29:54 -0500 (CDT) Received: by sweetums.wibdio.net (Postfix, from userid 500) id F1E501577A9; Sat, 11 Sep 2004 18:29:52 -0500 (CDT) Date: Sat, 11 Sep 2004 18:29:52 -0500 From: David Blevins To: dev@geronimo.apache.org Subject: Re: Subversion keyword expansion not working Message-ID: <20040911232952.GA32063@sweetums.ce1.client2.attbi.com> References: <20040911062525.58095.qmail@minotaur.apache.org> <99E8A1F4-03BF-11D9-85D4-000D93C5B79C@gluecode.com> <2F7D0741-0438-11D9-85D4-000D93C5B79C@gluecode.com> <41436F9A.7050807@apache.org> <41438449.5010308@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41438449.5010308@apache.org> User-Agent: Mutt/1.4.2i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sun, Sep 12, 2004 at 01:03:37AM +0200, Jacek Laskowski wrote: > > Here's the script to run. It replaces $Revision: ...$ to $Rev$. > > #!/bin/sh > > find etc -path "*/.svn" -prune -o -type f -print | while read file; > do > sed 's,\$Revision: [^$]* \$,\$Rev\$,' $file > $file.changed > mv $file.changed $file > rm $file.changed > done > > Having done this, I'll be 'svn propset svn:keywords "author date id rev" > $file' and commit the files ('svn ci --message "Changing $Revision$ to > $Rev$" $files). > > Is the order ok? May I change the keyword, commit the change and propset > afterwards or is the commit not necessary? > > Any comments? > Why not throw this into the find -exec sed -i.bak 's,\$Revision: [^$]* \$,\$Rev\$,' {} \; ...and skip the loop and extra files? -David