Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site ccvaxa
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!willcox
From: willcox@ccvaxa.UUCP
Newsgroups: net.unix
Subject: Re: Using named revisions in RCS
Message-ID: <1900012@ccvaxa>
Date: Thu, 3-Oct-85 10:37:00 EDT
Article-I.D.: ccvaxa.1900012
Posted: Thu Oct  3 10:37:00 1985
Date-Received: Sat, 5-Oct-85 03:17:34 EDT
References: <1633@brl-tgr.ARPA>
Lines: 24
Nf-ID: #R:brl-tgr.ARPA:-163300:ccvaxa:1900012:000:684
Nf-From: ccvaxa.UUCP!willcox    Oct  3 09:37:00 1985


I wanted to do the same thing a few weeks ago, so I cobbled together
the following shell script.  It's something of a kludge, but is
definitely in the UNIX spirit ("use existing tools to make new ones").
I'm sure someone will want to add lots of new features to it, but
it served my purpose as is:


#!/bin/csh -f
set name=$1
shift
echo "Setting symbolic name to $name"
foreach i ($*)
    echo $i"":
    set head=`rlog -h $i | sed -n -e "s/head:  *//p"`
    if ($head != "") then rcs -N$name:$head -sRel:$head $i
end
---------------------------------
David A. Willcox
Gould CSD-Urbana
1101 E. University Ave.
Urbana, IL 61801
217-384-8500
{decvax!pur-ee,ihnp4}!uiucdcs!ccvaxa!willcox