aboutsummaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-11-07 15:49:09 +0000
committerRob Austein <sra@hactrn.net>2014-11-07 15:49:09 +0000
commit57aa21b33028bed90e746221edc1d491306b7475 (patch)
tree12c9df40458cae47eb427ecb568a08cd8cfc738b /buildtools
parent2e9f99b5a589a51fbb16a54b67043f56d766814f (diff)
Yet another SAX -> ETree nit.
svn path=/branches/tk705/; revision=6009
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/build-freebsd-ports.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/build-freebsd-ports.py b/buildtools/build-freebsd-ports.py
index 17ee2abe..ab2f9be6 100644
--- a/buildtools/build-freebsd-ports.py
+++ b/buildtools/build-freebsd-ports.py
@@ -83,8 +83,9 @@ shutil.copytree(os.path.join(args.svndir, "buildtools", "freebsd-skeleton"), arg
if args.local_dist:
subprocess.check_call(("svn", "export", args.svndir, os.path.join(args.portsdir, tarname)))
- with open(os.path.join(args.portsdir, tarname, "VERSION"), "w") as f:
- f.write(version + "\n")
+ for fn, fmt in (("VERSION", "%s\n"), ("rpki/version.py", "VERSION = \"%s\"\n")):
+ with open(os.path.join(args.portsdir, tarname, fn), "w") as f:
+ f.write(fmt % version)
subprocess.check_call(("tar", "cJvvf", tarball, tarname), cwd = args.portsdir)
shutil.rmtree(os.path.join(args.portsdir, tarname))
elif os.path.exists(os.path.join(portsdir_old, tarball)):