Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!ucdavis!csusac!unify!rdk386!ron 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 Reply-To: ron@rdk386.UUCP (Ron Kuris) Organization: At Home, Sacramento, CA Lines: 33 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.