chiark / gitweb /
Remove obsolete baz* scripts
authorColin Watson <cjwatson@debian.org>
Sat, 1 Sep 2018 10:01:31 +0000 (11:01 +0100)
committerColin Watson <cjwatson@debian.org>
Sat, 1 Sep 2018 10:01:31 +0000 (11:01 +0100)
bazpath [deleted file]
bazresolved [deleted file]
baztag [deleted file]

diff --git a/bazpath b/bazpath
deleted file mode 100755 (executable)
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 (executable)
index 4faed8f..0000000
+++ /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 (executable)
index 5ddb42f..0000000
--- a/baztag
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh -e
-
-usage () {
-       cat <<EOF
-$0 [options] VERSION
-
-Options:
-  -n, --no-act          Don't tag; just print the command that would be run.
-
-EOF
-}
-
-NOACT=
-
-if ! eval set -- "$(getopt -o n -l help,no-act -- "$@")"; then
-       usage >&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")"