From: Colin Watson Date: Sat, 1 Sep 2018 10:01:31 +0000 (+0100) Subject: Remove obsolete baz* scripts X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=8e8a70c71ec44dbf3347cce0c69652dddb47c586 Remove obsolete baz* scripts --- diff --git a/bazpath b/bazpath deleted file mode 100755 index 8311b4b..0000000 --- a/bazpath +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/sh -e -# Work out Bazaar archive names for branches or tags of the current -# directory. - -WANTED="$1" -ME="$(baz tree-version)" - -if [ "$WANTED" ]; then - ARCHIVE="$(baz parse-package-name --arch "$ME")" - CATEGORY="$(baz parse-package-name --category "$ME")" - case $WANTED in - *--*) - echo "$ARCHIVE/$CATEGORY--$WANTED" - ;; - *) - VERSION="$(baz parse-package-name --vsn "$ME")" - echo "$ARCHIVE/$CATEGORY--$WANTED--$VERSION" - ;; - esac -else - echo "$ME" -fi diff --git a/bazresolved b/bazresolved deleted file mode 100755 index 4faed8f..0000000 --- a/bazresolved +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh -e -# Same as 'baz resolved', but also cleans up .orig and .rej files. - -baz resolved "$@" - -for file; do - rm -f "$file.orig" "$file.rej" -done diff --git a/baztag b/baztag deleted file mode 100755 index 5ddb42f..0000000 --- a/baztag +++ /dev/null @@ -1,38 +0,0 @@ -#! /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")"