/[emacs]/emacs/lib-src/rcs2log
ViewVC logotype

Diff of /emacs/lib-src/rcs2log

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by eggert, Wed Sep 5 23:07:46 2001 UTC revision 1.48.4.1 by eggert, Sun Feb 3 17:45:30 2002 UTC
# Line 31  Report bugs to <bug-gnu-emacs@gnu.org>.' Line 31  Report bugs to <bug-gnu-emacs@gnu.org>.'
31    
32  Id='$Id$'  Id='$Id$'
33    
34  # Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002
35  #  Free Software Foundation, Inc.  #  Free Software Foundation, Inc.
36    
37  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 49  Id='$Id$' Line 49  Id='$Id$'
49  # Free Software Foundation, Inc., 59 Temple Place - Suite 330,  # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
50  # Boston, MA 02111-1307, USA.  # Boston, MA 02111-1307, USA.
51    
52  Copyright='Copyright 2001 Free Software Foundation, Inc.  Copyright='Copyright (C) 2002 Free Software Foundation, Inc.
53  This program comes with NO WARRANTY, to the extent permitted by law.  This program comes with NO WARRANTY, to the extent permitted by law.
54  You may redistribute copies of this program  You may redistribute copies of this program
55  under the terms of the GNU General Public License.  under the terms of the GNU General Public License.
# Line 79  nl=' Line 79  nl='
79  # Parse options.  # Parse options.
80    
81  # defaults  # defaults
82  : ${AWK=awk}  AWK=${AWK-awk}
83  : ${TMPDIR=/tmp}  TMPDIR=${TMPDIR-/tmp}
84  changelog=ChangeLog # change log file name  changelog=ChangeLog # change log file name
85  datearg= # rlog date option  datearg= # rlog date option
86  hostname= # name of local host (if empty, will deduce it later)  hostname= # name of local host (if empty, will deduce it later)
# Line 354  case $rlogfile in Line 354  case $rlogfile in
354  esac  esac
355    
356    
357    # Prefer the POSIX-style -k options, since POSIX 1003.1-2001 prohibits
358    # support for the traditional-style +M -N options.
359    SORT_K_OPTIONS='-k 3,4r -k 5 -k 1'
360    sort $SORT_K_OPTIONS </dev/null 2>/dev/null || SORT_K_OPTIONS='+2 -4r +4 +0'
361    
362    
363  # Get the full name of each author the logs mention, and set initialize_fullname  # Get the full name of each author the logs mention, and set initialize_fullname
364  # to awk code that initializes the `fullname' awk associative array.  # to awk code that initializes the `fullname' awk associative array.
365  # Warning: foreign authors (i.e. not known in the passwd file) are mishandled;  # Warning: foreign authors (i.e. not known in the passwd file) are mishandled;
# Line 615  $AWK ' Line 621  $AWK '
621  # Sort the log entries, first by date+time (in reverse order),  # Sort the log entries, first by date+time (in reverse order),
622  # then by author, then by log entry, and finally by file name and revision  # then by author, then by log entry, and finally by file name and revision
623  # (just in case).  # (just in case).
624  sort -t"$SOH" +2 -4r +4 +0 |  sort -t"$SOH" $SORT_K_OPTIONS |
625    
626  # Finally, reformat the sorted log entries.  # Finally, reformat the sorted log entries.
627  $AWK -F"$SOH" '  $AWK -F"$SOH" '

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.48.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26