+bm-prep-ownpackage-branches () {
+ cat <<'END' >$tmp/stunt-git
+#!/bin/sh -e
+case "$*" in
+*clean*) echo >&2 "BUILD-MODES PROGRAM git $*" ;;
+esac
+exec git "$@"
+END
+ chmod +x $tmp/stunt-git
+
+ bm_branches="$1"
+}
+
bm-prep () {
t-tstunt-parsechangelog
-i debian/control
git commit -a -m bad-build-deps
- cat <<'END' >$tmp/stunt-git
-#!/bin/sh -e
-case "$*" in
-*clean*) echo >&2 "BUILD-MODES PROGRAM git $*" ;;
-esac
-exec git "$@"
-END
- chmod +x $tmp/stunt-git
+ bm-prep-ownpackage-branches 'indep-arch bad-build-deps'
if zgrep 'dpkg-buildpackage: Make dependency checks fatal for -S' \
/usr/share/doc/dpkg-dev/changelog.gz; then
bm-build-deps-ok () {
case "$branch" in
- indep-arch) return 0 ;;
- bad-build-deps) return 1 ;;
+ *bad-build-deps*) return 1 ;;
+ *) return 0 ;;
esac
}
bm-act-iterate () {
for cleanmode in $cleanmodes; do
- for branch in indep-arch bad-build-deps; do
+ for branch in $bm_branches; do
bm-run-one
done
done