--- control_rancid 2009-07-21 14:48:29.000000000 -0500 +++ control_rancid-new 2009-07-21 14:00:37.000000000 -0500 @@ -45,7 +45,7 @@ # print a usage message to stderr pr_usage() { - echo "usage: $0 [-V] [-r device_name] [-m mail rcpt] [group [group ...]]" >&2; + echo "usage: $0 [-V] [-r device_name] [-m mail rcpt] [-c commit remark] [group [group ...]]" >&2; } # command-line options @@ -78,6 +78,12 @@ device="$1" shift ;; + -c) + shift + # next arg is commit remark + commit_remark=$1 + shift + ;; --) shift; break; ;; @@ -467,7 +473,7 @@ subject="router config diffs" fi if [ "X$device" != "X" ] ; then - $RCSSYS commit -m "updates - courtesy of $mailrcpt" + $RCSSYS commit -m "updates - $commit_remark" subject="$GROUP/$device $subject" else $RCSSYS commit -m updates