Kaydet (Commit) 66a0a0a9 authored tarafından Fred Drake's avatar Fred Drake

Make the option processing more robust.

Add a -F option similar to "cvs commit -F <file>".
Add a -t option to allow specifying the prefix to the directory into which
the docs should be unpacked (useful when I start trying out new styles for
the presentation).
üst 8c2133da
...@@ -19,12 +19,36 @@ fi ...@@ -19,12 +19,36 @@ fi
EXPLANATION='' EXPLANATION=''
if [ "$1" = '-m' ] ; then while [ "$#" -gt 0 ] ; do
EXPLANATION="$2" case "$1" in
shift 2 -m)
elif [ "$1" ] ; then EXPLANATION="$2"
EXPLANATION="`cat $1`" shift 2
shift 1 ;;
-t)
DOCTYPE="$2"
shift 2
;;
-F)
EXPLANATION="`cat $2`"
shift 2
;;
-*)
echo "Unknown option: $1" >&2
exit 2
;;
*)
break
;;
esac
done
if [ "$1" ] ; then
if [ "$EXPLANATION" ] ; then
echo "Explanation may only be given once!" >&2
exit 2
fi
EXPLANATION="$1"
shift
fi fi
START="`pwd`" START="`pwd`"
...@@ -45,7 +69,7 @@ ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/upda ...@@ -45,7 +69,7 @@ ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/upda
Mail -s "[$DOCLABEL doc updates]" $ADDRESSES <<EOF Mail -s "[$DOCLABEL doc updates]" $ADDRESSES <<EOF
The development version of the documentation has been updated: The development version of the documentation has been updated:
http://python.sourceforge.net/$DOCTYPE-docs/ http://python.sourceforge.net/$DOCTYPE-docs/
$EXPLANATION $EXPLANATION
EOF EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment