Initial revision
This commit is contained in:
parent
d9fe7e9cf0
commit
7f3328678f
24
distr/todistr
Normal file
24
distr/todistr
Normal file
|
@ -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
|
Loading…
Reference in a new issue