Mention the adequate SCM tool within the subject line

This commit is contained in:
Pierre Pronchery 2013-07-19 03:17:23 +02:00
parent 770b8a2060
commit 3e5ce18155

View File

@ -147,12 +147,15 @@ _usage()
#main
#parse options
update=_deforaos_update_cvs
scm=
while getopts "CgO:" name; do
case "$name" in
C)
scm="CVS"
update=_deforaos_update_cvs
;;
g)
scm="Git"
update=_deforaos_update_git
;;
O)
@ -171,4 +174,4 @@ if [ $# -ne 0 ]; then
fi
[ -n "$ROOT" ] || ROOT=$($MKTEMP -d -p "$HOME" "temp.XXXXXX")
[ -n "$ROOT" ] || exit 2
$update 2>&1 | $MAIL -s "Daily CVS update: $DATE" "$EMAIL"
$update 2>&1 | $MAIL -s "Daily $scm update: $DATE" "$EMAIL"