#!/bin/sh # Usage: rcs-prep TITLE RCSFILE ... set -eu usage='Make sure that RCS files by the given names exist, and title them.' eval "$(args rcs-prep title -r -u "$usage" -- "$@")" for f in "$@"; do case "$f" in *",v") ;; *) echo "not an RCS filename: $f" >&2 exit 1 ;; esac done for f in "$@"; do [ -f $f ] || { rcs -i -U -t-"$title" $f } done