diff options
author | Rob Austein <sra@hactrn.net> | 2013-03-14 18:50:16 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-03-14 18:50:16 +0000 |
commit | 93943765d3a6c4ade1ad2b118fc31cca546e7f6d (patch) | |
tree | ca5ff14165d63fe33a48582129dbb2da446b61ca /buildtools/build-ubuntu-ports.py | |
parent | 6062493d6849eb8f5f0dc365f86138814fc16853 (diff) |
Unpack silly debian-package-skeleton.py script, replace other
Debian-universe kludges with something simple that just copies a
debian/ skeleton tree and generates a debian/changelog file.
svn path=/trunk/; revision=5144
Diffstat (limited to 'buildtools/build-ubuntu-ports.py')
-rw-r--r-- | buildtools/build-ubuntu-ports.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/buildtools/build-ubuntu-ports.py b/buildtools/build-ubuntu-ports.py new file mode 100644 index 00000000..2884cd1f --- /dev/null +++ b/buildtools/build-ubuntu-ports.py @@ -0,0 +1,30 @@ +# Set up for an Ubuntu package build. +# +# This is a script because we need to set the changelog, and some day +# we may need to do something about filtering specific files so we can +# use the same skeleton for both Ubuntu and Debian builds without +# requiring them to be identical. +# +# For now, though, this just copies the debian skeleton and creates a +# changelog. + +import subprocess +import shutil +import sys +import os + +version = subprocess.check_output(("svnversion", "-c")).strip().split(":")[-1] + +#if not version.isdigit(): sys.exit("Sources don't look pristine, not building (%r)" % version) + +version = "0." + version + +shutil.copytree("buildtools/debian-skeleton", "debian") + +subprocess.check_call(("dch", "--create", "--package", "rpki", "--newversion", version, + "Version %s of https://subvert-rpki.hactrn.net/trunk/" % version), + env = dict(os.environ, + EDITOR = "true", + VISUAL = "true", + TZ = "UTC", + DEBEMAIL = "Rob Austein <sra@rpki.net>")) |