aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert1995-06-28 01:47:55 +0000
committerPaul Eggert1995-06-28 01:47:55 +0000
commitc49b2b754c0119eb74dac79a7c13ea5ec7b5856f (patch)
tree4561383f92112ae493836a0107d02b6584217f14 /lib-src
parenta699ec6ded73363909a634eeca5ebaa181c11cf7 (diff)
downloademacs-c49b2b754c0119eb74dac79a7c13ea5ec7b5856f.tar.gz
emacs-c49b2b754c0119eb74dac79a7c13ea5ec7b5856f.zip
(CVSROOT, repository): Allow remote repositories a la CVS 1.4.
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log26
1 files changed, 17 insertions, 9 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index 3bcf5e9ace9..632b6679e3a 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.22 1995/04/30 15:34:52 eggert Exp $ 15# $Id: rcs2log,v 1.24 1995/06/28 01:47:55 eggert Exp $
16 16
17# Copyright 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 17# Copyright 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
18 18
@@ -178,15 +178,23 @@ then
178else 178else
179 rlog='cvs log' 179 rlog='cvs log'
180 repository=`sed 1q <CVS/Repository` || exit 180 repository=`sed 1q <CVS/Repository` || exit
181 case $repository in 181 test ! -f CVS/Root || CVSROOT=`cat <CVS/Root` || exit
182 /*) ;; 182 case ${CVSROOT?} in
183 *) repository=${CVSROOT?}/$repository 183 *:/*)
184 # remote repository
185 ;;
186 *)
187 # local repository
188 case $repository in
189 /*) ;;
190 *) repository=$CVSROOT/$repository
191 esac
192 if test ! -d "$repository"
193 then
194 echo >&2 "$0: $repository: bad repository (see CVS/Repository)"
195 exit 1
196 fi
184 esac 197 esac
185 if test ! -d "$repository"
186 then
187 echo >&2 "$0: $repository: bad repository (see CVS/Repository)"
188 exit 1
189 fi
190fi 198fi
191 199
192# With no arguments, examine all files under the RCS directory. 200# With no arguments, examine all files under the RCS directory.