#! /bin/sh -e usage () { cat <&2 exit 1 fi while :; do case $1 in --help) usage; exit 0 ;; -n|--no-act) NOACT=echo shift ;; --) shift; break ;; *) usage >&2; exit 1 ;; esac done if [ $# -eq 0 ]; then VERSION="$(dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)" else VERSION="$1" fi $NOACT baz branch "$(bazpath)" "$(bazpath "releases--$VERSION")"