#!/bin/sh if [ x$1 = x--help -o x$1 = x ]; then echo "$0 file" exit fi if [ x$EDITOR = x ]; then EDITOR="vi" fi function editit { echo $1 co -l $1 $EDITOR $1 ci -u $1 } if [ ! -f $1 ]; then touch $1 fi if [ -f RCS/$1,v ]; then editit $1 else mkdir RCS ci -u $1 -m "initial" editit $1 fi