From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Dickey Newsgroups: gmane.emacs.bugs Subject: rcs2log Date: Sat, 26 Apr 2003 10:49:51 -0400 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030426104951.A2438@invisible-island.net> Reply-To: dickey@herndon4.his.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" X-Trace: main.gmane.org 1051368188 4062 80.91.224.249 (26 Apr 2003 14:43:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 14:43:08 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 26 16:43:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199QtO-00013O-00 for ; Sat, 26 Apr 2003 16:43:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199QuM-0000wP-00 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 26 Apr 2003 10:44:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199Qtx-0000p0-00 for bug-gnu-emacs@gnu.org; Sat, 26 Apr 2003 10:43:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199Qtw-0000mE-00 for bug-gnu-emacs@gnu.org; Sat, 26 Apr 2003 10:43:40 -0400 Original-Received: from pcp741060pcs.reston01.va.comcast.net ([68.49.156.7] helo=bloatware.dickey.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199QrJ-0006kn-00 for bug-gnu-emacs@gnu.org; Sat, 26 Apr 2003 10:40:57 -0400 Original-Received: (from tom@localhost) by bloatware.dickey.net (8.9.3/8.9.3/Debian 8.9.3-21) id KAA02446 for bug-gnu-emacs@gnu.org; Sat, 26 Apr 2003 10:49:51 -0400 Original-To: bug-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.2.5i X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4896 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4896 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Two bugs noted (patch attached): The script doesn't handle symbolic links to RCS directories. A bogus hostname is applied to userid's that are not found on the current system. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rcs2log.diff" --- rcs2log 2003/04/25 20:16:12 1.1 +++ rcs2log 2003/04/26 14:47:00 @@ -31,6 +31,9 @@ Id='$Id: rcs2log,v 1.50 2002/02/03 17:31:31 eggert Exp $' +# modified to allow for symbolic links to RCS directories -T.Dickey +# modified to avoid using bogus hostname for authors -T.Dickey + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002 # Free Software Foundation, Inc. @@ -302,21 +305,21 @@ IFS=$nl case $recursive in t) - RCSdirs=`find . -name RCS -type d -print` + RCSdirs=`find . -name RCS -print` filesFromRCSfiles='s|,v$||; s|/RCS/|/|; s|^\./||' files=` { - case $RCSdirs in - ?*) find $RCSdirs \ - -type f \ + for dir in $RCSdirs + do + ( cd $dir && \ + find . -type f \ ! -name '*_' \ ! -name ',*,' \ ! -name '.*_' \ ! -name .rcsfreeze.log \ ! -name .rcsfreeze.ver \ - -print;; - esac - find . -name '*,v' -print + -print | sed -e 's|^\./|'$dir/'|' ) + done } | sort -u | sed "$filesFromRCSfiles" @@ -699,11 +702,12 @@ auth = fullname[author] else auth = author - printf "%s%s %s ", date, zone, auth + printf "%s%s %s", date, zone, auth if (mailaddr[author]) - printf "<%s>\n\n", mailaddr[author] - else - printf "<%s@%s>\n\n", author, "'"$hostname"'" + printf " <%s>", mailaddr[author] + else if (fullname[author]) + printf " <%s@%s>", author, "'"$hostname"'" + printf "\n\n" } if (! filesknown[$1]) { filesknown[$1] = 1 --envbJBWh7q8WU6mo Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --envbJBWh7q8WU6mo--