mirror of https://github.com/djcb/mu.git
mu4e: generate version.texi in meson build
So docs get the right version
This commit is contained in:
parent
9987ceb7a7
commit
c1793e0f6b
|
@ -76,19 +76,19 @@ foreach src : mu4e_srcs
|
||||||
target_func = '(setq byte-compile-dest-file-function(lambda(_) "' + target_path + '"))'
|
target_func = '(setq byte-compile-dest-file-function(lambda(_) "' + target_path + '"))'
|
||||||
|
|
||||||
custom_target(src.underscorify() + '_el',
|
custom_target(src.underscorify() + '_el',
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
input: src,
|
input: src,
|
||||||
output: target_name,
|
output: target_name,
|
||||||
install_dir: lispdir,
|
install_dir: lispdir,
|
||||||
install: true,
|
install: true,
|
||||||
command: [emacs,
|
command: [emacs,
|
||||||
'--no-init-file',
|
'--no-init-file',
|
||||||
'--batch',
|
'--batch',
|
||||||
'--eval', '(setq load-prefer-newer t)',
|
'--eval', '(setq load-prefer-newer t)',
|
||||||
'--eval', target_func,
|
'--eval', target_func,
|
||||||
'--directory', meson.current_build_dir(),
|
'--directory', meson.current_build_dir(),
|
||||||
'--directory', meson.current_source_dir(),
|
'--directory', meson.current_source_dir(),
|
||||||
'--funcall', 'batch-byte-compile', '@INPUT@'])
|
'--funcall', 'batch-byte-compile', '@INPUT@'])
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# also install the sources and the config
|
# also install the sources and the config
|
||||||
|
@ -98,13 +98,27 @@ install_data(mu4e_srcs, install_dir: lispdir)
|
||||||
install_data('mu4e-about.org', install_dir : join_paths(datadir, 'doc', 'mu'))
|
install_data('mu4e-about.org', install_dir : join_paths(datadir, 'doc', 'mu'))
|
||||||
|
|
||||||
if makeinfo.found()
|
if makeinfo.found()
|
||||||
|
|
||||||
|
fulldate = run_command('date', '+%d %B %Y', check:true).stdout().strip()
|
||||||
|
monthdate = run_command('date', '+%B %Y', check:true).stdout().strip()
|
||||||
|
version_texi_data = configuration_data({
|
||||||
|
'fulldate' : fulldate,
|
||||||
|
'monthdate' : monthdate,
|
||||||
|
'version' : meson.project_version(),
|
||||||
|
})
|
||||||
|
version_texi = configure_file(
|
||||||
|
input: 'version.texi.in',
|
||||||
|
output: 'version.texi',
|
||||||
|
configuration: version_texi_data
|
||||||
|
)
|
||||||
|
|
||||||
custom_target('mu4e_info',
|
custom_target('mu4e_info',
|
||||||
input: 'mu4e.texi',
|
input: 'mu4e.texi',
|
||||||
output: 'mu4e.info',
|
output: 'mu4e.info',
|
||||||
install_dir: infodir,
|
install_dir: infodir,
|
||||||
install: true,
|
install: true,
|
||||||
command: [makeinfo,
|
command: [makeinfo,
|
||||||
'-o', join_paths(meson.current_build_dir(), 'mu4e.info'),
|
'-o', join_paths(meson.current_build_dir(), 'mu4e.info'),
|
||||||
join_paths(meson.current_source_dir(), 'mu4e.texi'),
|
join_paths(meson.current_source_dir(), 'mu4e.texi'),
|
||||||
'-I', join_paths(meson.current_build_dir(), '..')])
|
'-I', join_paths(meson.current_build_dir(), '..')])
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue