]> git.sesse.net Git - plocate/blobdiff - meson.build
Release plocate 1.0.2.
[plocate] / meson.build
index 8a67ae7eecae902131710ea7df1a8bbc8facde8d..0595191fdefeef7c4994b25ae0a2db26fc1c5ce4 100644 (file)
@@ -1,4 +1,4 @@
-project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.1-pre')
+project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.2')
 
 # Make the version available as a #define.
 add_project_arguments('-DPLOCATE_VERSION="' + meson.project_version() + '"', language: 'cpp')
@@ -20,7 +20,13 @@ executable('plocate-build', 'plocate-build.cpp',
        install: true,
        install_dir: get_option('sbindir'))
 
-install_data('update-plocate.sh',
+conf_data = configuration_data()
+conf_data.set('sbindir', get_option('prefix') + '/' + get_option('sbindir'))
+update_script = configure_file(input: 'update-plocate.sh',
+               output: 'update-plocate.sh',
+               configuration: conf_data)
+
+install_data(update_script,
        install_dir: '/etc/cron.daily',
        rename: 'plocate')
 install_man('plocate.1')