aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log29
1 files changed, 24 insertions, 5 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index 65c7a5c6d37..19e16abe97b 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -12,7 +12,7 @@
12 12
13# Author: Paul Eggert <eggert@twinsun.com> 13# Author: Paul Eggert <eggert@twinsun.com>
14 14
15# $Id: rcs2log,v 1.10 1993/03/16 22:49:00 eggert Exp eggert $ 15# $Id: rcs2log,v 1.11 1993/05/03 17:55:22 eggert Exp rms $
16 16
17# Copyright 1992, 1993 Free Software Foundation, Inc. 17# Copyright 1992, 1993 Free Software Foundation, Inc.
18 18
@@ -30,6 +30,8 @@
30# along with this program; see the file COPYING. If not, write to 30# along with this program; see the file COPYING. If not, write to
31# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 31# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
32 32
33nl='
34'
33 35
34# Parse options. 36# Parse options.
35 37
@@ -114,14 +116,31 @@ then
114fi 116fi
115datearg="-d>$date" 117datearg="-d>$date"
116 118
119# With no arguments, examine all files under the RCS directory.
120case $# in
1210)
122 files=
123 for file in RCS/.* RCS/*
124 do
125 case $file in
126 RCS/. | RCS/..) ;;
127 RCS/.\* | RCS/\*) test -f "$file" && files=$files$nl$file;;
128 *) files=$files$nl$file
129 esac
130 done
131 case $files in
132 '') exit 0
133 esac
134 oldIFS=$IFS
135 IFS=$nl
136 set $files
137 IFS=$oldIFS
138esac
139
117rlogout=/tmp/chg$$ 140rlogout=/tmp/chg$$
118trap exit 1 2 13 15 141trap exit 1 2 13 15
119trap 'rm -f $rlogout; exit 1' 0 142trap 'rm -f $rlogout; exit 1' 0
120 143
121case $# in
1220) set RCS/*
123esac
124
125rlog "$datearg" "$@" >$rlogout || exit 144rlog "$datearg" "$@" >$rlogout || exit
126 145
127 146