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