diff --git a/meson.build b/meson.build index 0168c071ca..1e91c119e6 100644 --- a/meson.build +++ b/meson.build @@ -121,11 +121,11 @@ sbindir = prefix / get_option('sbindir') sysconfdir = prefix / get_option('sysconfdir') src_id = '' -if fs.is_file('.source-id') - src_id = fs.read('.source-id', encoding: 'utf-8').strip() +if fs.is_file('srcid') + src_id = fs.read('srcid', encoding: 'utf-8').strip() elif git.found() src_id = run_command(git, 'rev-parse', '--short', 'HEAD', check: true).stdout().substring(0, 7) - meson.add_dist_script('util' / 'meson-dist-package.sh', 'source-id', src_id) + meson.add_dist_script('util' / 'meson-dist-package.sh', 'srcid', src_id) endif ### Compiler diff --git a/util/meson-dist-package.sh b/util/meson-dist-package.sh index ec1d76c4df..7a60e18c75 100644 --- a/util/meson-dist-package.sh +++ b/util/meson-dist-package.sh @@ -61,8 +61,8 @@ generate_man_pages() { } case $1 in - "source-id") - echo $2 >$MESON_DIST_ROOT/.source-id + "srcid") + echo $2 >$MESON_DIST_ROOT/srcid ;; "manual") generate_man_pages $2 $3