From ce22f766680e439797e4b9a16367226ffd327d1f Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Thu, 13 Dec 2018 14:57:33 +0700 Subject: [PATCH] meson: Update man1 extension on meson 0.49.0 --- build/meson/programs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/meson/programs/meson.build b/build/meson/programs/meson.build index 5ede8c66..d91dd336 100644 --- a/build/meson/programs/meson.build +++ b/build/meson/programs/meson.build @@ -89,7 +89,7 @@ install_man(join_paths(zstd_rootdir, 'programs/zstd.1'), InstallSymlink_py = '../InstallSymlink.py' zstd_man1_dir = join_paths(zstd_mandir, 'man1') bin_EXT = host_machine_os == os_windows ? '.exe' : '' -man1_EXT = '.1.gz' # Meson automatically compresses manpages +man1_EXT = meson.version().version_compare('>=0.49.0') ? '.1' : '.1.gz' foreach f : ['zstdcat', 'unzstd'] meson.add_install_script(InstallSymlink_py, 'zstd' + bin_EXT, f + bin_EXT, zstd_bindir)