Created
October 27, 2012 13:51
-
-
Save ssm/3964681 to your computer and use it in GitHub Desktop.
Building a debian source package (snapshot version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 2012 Stig Sandbeck Mathisen <ssm@debian.org> | |
set -e | |
set -u | |
test "$(git status --porcelain | wc -l)" = "0" || { | |
echo "Aborting: Uncommitted changes in tree" | |
exit 1 | |
} | |
this_branch=$(git branch | awk '$1 == "*" {print $2}') | |
git checkout -B snapshot-build | |
git dch -a --debian-branch=snapshot-build -S ${1:+--snapshot-number $1} | |
git commit -m 'Update changelog for snapshot build' -- debian/changelog | |
gitpkg snapshot-build | |
git checkout $this_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment