Skip to content

Instantly share code, notes, and snippets.

@dangra
Created November 15, 2012 13:17
Show Gist options
  • Save dangra/4078613 to your computer and use it in GitHub Desktop.
Save dangra/4078613 to your computer and use it in GitHub Desktop.
diff --git a/bin/makedeb b/bin/makedeb
index ce9b292..140279b 100755
--- a/bin/makedeb
+++ b/bin/makedeb
@@ -1,5 +1,5 @@
#!/bin/sh
-version=$(python setup.py --version)-r$(git log --oneline | wc -l)+$(date +%Y%m%d%H%M)
+version=$(python setup.py --version)-r$(git log --oneline | wc -l)+$(date +%Y%m%d%H%M)${BUILD_CODE:+~$BUILD_CODE}
debchange -m -D unstable --force-distribution -v $version "Automatic build"
debuild --no-lintian -us -uc -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment