diff --git a/data/meson.build b/data/meson.build index b6472b70c7..bc14eadba7 100644 --- a/data/meson.build +++ b/data/meson.build @@ -14,3 +14,13 @@ subdir('tool-presets') meson.add_install_script('sh', '-c', 'mkdir -p $MESON_INSTALL_DESTDIR_PREFIX/@0@'.format(gimpdatadir / 'fonts') ) + +custom_target('gimp-release', + output: [ 'gimp-release' ], + command: [ + 'echo', ['[package]' + '\nrevision=@0@'.format(get_option('revision'))] + ], + capture: true, + install: true, + install_dir: gimpdatadir, +) diff --git a/meson.build b/meson.build index ffce5462d8..31ac36e5ea 100644 --- a/meson.build +++ b/meson.build @@ -1101,7 +1101,6 @@ conf.set_quoted('BUG_REPORT_URL', bug_report_url) # Build identifiers # conf.set_quoted('GIMP_BUILD_ID', get_option('build-id')) -conf.set('GIMP_BUILD_REVISION', get_option('revision')) conf.set_quoted('GIMP_BUILD_PLATFORM', host_os) if platform_linux conf.set_quoted('GIMP_BUILD_PLATFORM_FAMILY', 'linux') diff --git a/meson_options.txt b/meson_options.txt index fc57ac5f56..7cfc02d920 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -13,7 +13,7 @@ option('shmem-type', type: 'combo', value: 'auto', description: 'Shared choices: [ 'none', 'sysv', 'posix', 'win32', 'auto' ]) option('build-id', type: 'string', value: 'unknown', description: 'Unique string used to define your build') -option('revision', type: 'integer', value: 0, description: 'Revision increment for a same build/version/platform') +option('revision', type: 'integer', value: 0, description: 'Revision increment for a package') option('check-update', type: 'boolean', value: true, description: 'GIMP will look up new version availability on startup') option('bug-report-url', type: 'string', value: '', description: 'URL used by the debug dialog to report bugs')