mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 01:59:26 +00:00
Create "srcid" file as part of release tarball
Change the name of the source ID file to what we used to deliver.
This commit is contained in:
parent
875c609424
commit
54ea6722e5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user