meson: Replace configure_file with fs.copyfile
configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I776a96a47c35121b3ba88e3e3387fc70b84d93dd
diff --git a/meson.build b/meson.build
index 9e0421e..0cfd2b4 100644
--- a/meson.build
+++ b/meson.build
@@ -53,10 +53,9 @@
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
-configure_file(
- copy: true,
- input: 'srvcfg-manager.service',
+fs = import('fs')
+fs.copyfile(
+ 'srvcfg-manager.service',
install: true,
- install_dir: systemd_system_unit_dir,
- output: 'srvcfg-manager.service'
+ install_dir: systemd_system_unit_dir
)