From 7f3328678f63f03ae4ef6f502379def4069f8724 Mon Sep 17 00:00:00 2001 From: keie Date: Tue, 4 Dec 1984 21:38:13 +0000 Subject: [PATCH] Initial revision --- distr/todistr | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 distr/todistr diff --git a/distr/todistr b/distr/todistr new file mode 100644 index 000000000..d452233bd --- /dev/null +++ b/distr/todistr @@ -0,0 +1,24 @@ +REV= +FILE= +while : +do + case $# in + 0) break ;; + esac + ARG="$1" + shift + case "$ARG" in + -r*) REV=`echo "$ARG"| sed s/-r//` ;; + -*) FLAGS=$FLAGS $ARG ;; + *) case x$FILE in + x) FILE="$ARG" ;; + *) echo todistr can only be done on one file at the time + exit 1 ;; + esac + esac +done +set -e +case x$REV in +x) REV=`rlog -h "$FILE"|sed -n -e '/head/s/^head:[ ]*//'` ;; +esac +rcs -ndistr2:$REV $FLAGS $FILE