diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -132,42 +132,6 @@ sbuild-preupload() { lintian } -# release process for almost all of the Debian packages I maintain -debrel () { - ( - set -e - local branch="$(git symbolic-ref HEAD | sed 's|refs/heads/||')" - - if ! (git diff-index --quiet --cached HEAD && \ - git diff-files --quiet && \ - test -z "$(git status --porcelain)" \ - ) >/dev/null 2>&1; then - echo >&2 "must commit first" - exit 1 - fi - if [[ $branch =~ ^wip/ ]]; then - echo >&2 "you don't want to upload a wip/ branch" - exit 1 - fi - if [ "$(dpkg-parsechangelog -SDistribution)" = "UNRELEASED" ]; then - debchange --release # pauses for user confirmation - git commit --include debian/changelog \ - -m"finalise changelog for $(dpkg-parsechangelog -SVersion) upload" - fi - dgit push-source "$@" - git push --follow-tags - - # # if origin is not salsa, we might also want to push to salsa - # # (.mrconfig.in should contain `git remote add -f salsa - # # salsa:foo/bar` for this repo) - # if git remote | grep -q salsa \ - # && git branch --contains salsa/$branch \ - # | grep -qE " $branch$"; then - # git push --follow-tags salsa $branch:$branch - # fi - ) -} - package-plan-unpack () { package="$1" patches="$HOME/src/package-plan/patches/${package%-*}/${package##*-}" |