all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thomas Dickey <dickey@herndon4.his.com>
Subject: rcs2log
Date: Sat, 26 Apr 2003 10:49:51 -0400	[thread overview]
Message-ID: <20030426104951.A2438@invisible-island.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

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 <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

[-- Attachment #2: rcs2log.diff --]
[-- Type: text/plain, Size: 1567 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

             reply	other threads:[~2003-04-26 14:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-26 14:49 Thomas Dickey [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-20  1:00 rcs2log Glenn Morris
2014-05-20  8:03 ` rcs2log Paul Eggert
2014-05-20 13:48 ` rcs2log Stefan Monnier
2014-05-20 14:41   ` rcs2log Eric S. Raymond
2014-05-20 15:10   ` rcs2log Paul Eggert
2014-05-20 15:41     ` rcs2log Eric S. Raymond
2014-05-20 15:43     ` rcs2log David Kastrup
2014-05-20 16:05       ` rcs2log Stephen Berman
2014-05-21  3:32         ` rcs2log Stephen J. Turnbull
2014-05-20 16:48     ` rcs2log Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030426104951.A2438@invisible-island.net \
    --to=dickey@herndon4.his.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.