Converting sccs to rcs
Ron Kuris
ron at rdk386.uucp
Tue Apr 10 23:21:48 AEST 1990
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.
More information about the Alt.sources
mailing list