home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
1
/
1158
< prev
next >
Wrap
Internet Message Format
|
1990-12-28
|
1KB
From: ron@rdk386.uucp (Ron Kuris)
Newsgroups: alt.sources
Subject: Converting sccs to rcs
Message-ID: <1990Apr10..9143@rdk386.uucp>
Date: 10 Apr 90 13:21:48 GMT
Here is a bourne/korn shell function to convert sccs files to rcs
files. I've tried it on quite a few and it seems to work well.
This puppy converts the comments and maintains the version numbers
too! Just pass it all the s.* files and it produces ,v files for
you. If you create an RCS directory, the files will be placed there.
Otherwise, they'll be in your current directory.
Also note you'll get an error during the initial 'co' of the file
that hasn't been started yet. This is normal and can be ignored.
(actually, somebody fix it and keep it fast, please).
sccs2rcs()
{
for arg
do
if expr "$arg" : '^s.*' >/dev/null 2>&1; then
arg=`expr "$arg" : 's.\(.*\)'`
fi
for i in `prs -e -d:R:.:L: s.$arg | sort -n`
do
co -l -r$i $arg
rm -f $arg
get -r$i s.$arg
ci -r$i -m"`prs -r$i -d:C: s.$arg`" $arg < /dev/null
done
done
}
--
--
...!pyramid!unify!rdk386!ron -or- ...!ames!pacbell!sactoh0!siva!rdk386!ron
It's not how many mistakes you make, its how quickly you recover from them.