summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-21 20:03:39 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-21 21:33:04 +0200
commit8395cf30121e47453ddcdc2bf23bbbd612b01dc9 (patch)
tree4765c0322b421da4378271701281d45e9bc8cb4d /cscript
parent748b182f27eedb006cb8493e12a389fa1c5883e7 (diff)
Remove old debian changelog and fix its creation.cl
Diffstat (limited to 'cscript')
-rw-r--r--cscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/cscript b/cscript
index 6545f6190..c4ba6e553 100644
--- a/cscript
+++ b/cscript
@@ -19,6 +19,7 @@
#
from __future__ import print_function
+import datetime
import glob
import shutil
import os
@@ -755,8 +756,14 @@ def package_debian(target, cpu, version, options):
shutil.move('../../dcpomatic-%s.tar.bz2' % version, 'dcpomatic_%s.orig.tar.bz2' % version)
target.command('tar xjf dcpomatic_%s.orig.tar.bz2' % version)
os.chdir('dcpomatic-%s' % version)
- target.set('EMAIL', 'carl@dcpomatic.com')
- target.command('dch -b -v %s-1 "New upstream release."' % version)
+
+ with open('debian/changelog', 'w') as f:
+ print(f'dcpomatic ({version}-1) unstable; urgency=medium', file=f)
+ print('', file=f)
+ print(' * New upstream release.', file=f)
+ print('', file=f)
+ print(f" -- Carl Hetherington <carl@dcpomatic.com> {datetime.datetime.now().astimezone().strftime('%a, %d %b %Y %H:%M:%S %z')}", file=f)
+
target.set('CDIST_LINKFLAGS', target.get('LINKFLAGS'))
target.set('CDIST_CXXFLAGS', target.get('CXXFLAGS'))
target.set('CDIST_PKG_CONFIG_PATH', target.get('PKG_CONFIG_PATH'))