ack/distr/todistr

27 lines
427 B
Plaintext
Raw Normal View History

1984-12-04 21:38:13 +00:00
REV=
FILE=
while :
do
case $# in
0) break ;;
esac
ARG="$1"
shift
case "$ARG" in
-r*) REV=`echo "$ARG"| sed s/-r//` ;;
1984-12-04 21:57:22 +00:00
-*) FLAGS="$FLAGS $ARG" ;;
1984-12-04 21:38:13 +00:00
*) case x$FILE in
x) FILE="$ARG" ;;
*) echo todistr can only be done on one file at the time
exit 1 ;;
esac
esac
done
case x$REV in
1984-12-04 21:48:14 +00:00
x) REV=`rlog -h "$FILE"|sed -n -e '/head/s/^head:[ ]*//p'` ;;
esac
case x$REV in
x) exit 2 ;;
1984-12-04 21:38:13 +00:00
esac
1987-04-01 13:50:18 +00:00
rcs -ndistr3:$REV $FLAGS $FILE