all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rcs2log
@ 2014-05-20  1:00 Glenn Morris
  2014-05-20  8:03 ` rcs2log Paul Eggert
  2014-05-20 13:48 ` rcs2log Stefan Monnier
  0 siblings, 2 replies; 11+ messages in thread
From: Glenn Morris @ 2014-05-20  1:00 UTC (permalink / raw)
  To: emacs-devel


Emacs's lib-src/rcs2log is semi-busted, as reported

http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg01107.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427167

7 years ago.

Does Emacs really need to supply rcs2log, or can we simply let people
get it as part of the cvs package (e.g. both Debian and Red Hat provide
it with `cvs').

If the former, then the Emacs version needs to be fixed.
(The CVS one was years ago.)



^ permalink raw reply	[flat|nested] 11+ messages in thread
* rcs2log
@ 2003-04-26 14:49 Thomas Dickey
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Dickey @ 2003-04-26 14:49 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-05-21  3:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2003-04-26 14:49 rcs2log Thomas Dickey

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.