From 6d3d0ebba3103ec63737383385ed51d65f4e0eae Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 6 Jul 2020 00:26:07 +0430 Subject: [PATCH] Remove .tarball-revision generation from meson dist Toward making release tarball identical to git checkout now that we are moving to meson. --- Makefile.am | 1 - meson.build | 4 ---- write-tarball-revision.py | 13 ------------- 3 files changed, 18 deletions(-) delete mode 100755 write-tarball-revision.py diff --git a/Makefile.am b/Makefile.am index 3fb4eaa9e..c27b0059b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,7 +42,6 @@ EXTRA_DIST = \ perf/texts/fa-thelittleprince.txt \ meson-cc-tests/intel-atomic-primitives-test.c \ meson-cc-tests/solaris-atomic-operations.c \ - write-tarball-revision.py \ $(NULL) MAINTAINERCLEANFILES = \ diff --git a/meson.build b/meson.build index 4347f98ba..997b8a0f5 100644 --- a/meson.build +++ b/meson.build @@ -358,10 +358,6 @@ if not get_option('gtk_doc').disabled() subdir('docs') endif -if not meson.is_subproject() - meson.add_dist_script('write-tarball-revision.py') -endif - configure_file(output: 'config.h', configuration: conf) summary({'prefix': get_option('prefix'), diff --git a/write-tarball-revision.py b/write-tarball-revision.py deleted file mode 100755 index ebf64262c..000000000 --- a/write-tarball-revision.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python3 - -import os, subprocess -from pathlib import Path - -outfile = Path( - os.getenv ('MESON_DIST_ROOT') - or os.getenv ('MESON_SOURCE_ROOT') - or Path(__file__).parent -) / '.tarball-revision' - -with open(outfile, 'wb') as f: - f.write(subprocess.check_output(['git', 'log', '--no-color', '--no-decorate', 'HEAD~..HEAD']))