[meld] Update maint script to distribute with Meson
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Update maint script to distribute with Meson
- Date: Sun, 19 Apr 2020 01:11:10 +0000 (UTC)
commit 5c10999b7ecb657ca3e0d25d5555693e29f86ae4
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 19 10:54:44 2020 +1000
Update maint script to distribute with Meson
maint | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/maint b/maint
old mode 100644
new mode 100755
index 772c1dc7..37c75af0
--- a/maint
+++ b/maint
@@ -486,12 +486,19 @@ def markdown(filename):
@cli.command()
def dist():
- archive = '%s-%s.tar.bz2' % (meld.conf.__package__, meld.conf.__version__)
- dist_archive_path = os.path.abspath(os.path.join('dist', archive))
- if os.path.exists(dist_archive_path):
- click.echo('Replacing %s...' % dist_archive_path)
- cmd = ['python3', 'setup.py', 'sdist', '--formats=bztar']
+ build_dir = '_build'
+ archive = '%s-%s.tar.xz' % (meld.conf.__package__, meld.conf.__version__)
+ dist_archive_path = os.path.abspath(
+ os.path.join(build_dir, 'meson-dist', archive))
+
+ click.echo('Running meson...')
+ cmd = ['meson', build_dir]
+ call_with_output(cmd, echo_stdout=False)
+
+ click.echo('Creating distribution...')
+ cmd = ['ninja', '-C', build_dir, 'dist']
call_with_output(cmd, echo_stdout=False)
+
if not os.path.exists(dist_archive_path):
click.echo('Failed to create archive file %s' % dist_archive_path)
raise click.Abort()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]