diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-15 10:47:29 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-15 10:47:29 -0700 |
commit | abadd211438620723af1fff0fcdf71688297cb3d (patch) | |
tree | be640e4bc097b4ac7a509e4012eb7a71262481f7 /.bashrc | |
parent | 27c1409aea084eb3df73acbcdf30269f53deba65 (diff) | |
download | dotfiles-abadd211438620723af1fff0fcdf71688297cb3d.tar.gz |
make debrel a script, not just a .bashrc function
So can call from outside of bash.
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##*-}" |