mirror of https://github.com/GNOME/gimp.git
meson: Fix dist script
This commit is contained in:
parent
3279bb3351
commit
0c7a980bc1
|
@ -1476,7 +1476,8 @@ has_version_h = run_command('python3', '-c',
|
|||
'import sys,os; sys.exit(0 if os.path.exists("git-version.h") else 1)'
|
||||
).returncode() == 0
|
||||
|
||||
if is_git_repository or not has_version_h
|
||||
generate_version_h = is_git_repository or not has_version_h
|
||||
if generate_version_h
|
||||
gitversion_h1 = vcs_tag(
|
||||
input : 'app/git-version.h.in',
|
||||
output: 'git-version.h.in.1',
|
||||
|
@ -1647,7 +1648,7 @@ custom_target('Changelog',
|
|||
build_by_default: false,
|
||||
)
|
||||
|
||||
meson.add_dist_script('meson_dist_script.sh')
|
||||
meson.add_dist_script('meson_dist_script.sh', generate_version_h ? gitversion_h.full_path() : gitversion_h)
|
||||
|
||||
|
||||
################################################################################
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
cp -f 'INSTALL' "${MESON_DIST_ROOT}"
|
||||
# rm -f "${MESON_DIST_ROOT}/INSTALL.in"
|
||||
|
||||
cp 'git-version.h' "${MESON_DIST_ROOT}"
|
||||
cp "$1" "${MESON_DIST_ROOT}"
|
||||
|
|
Loading…
Reference in New Issue