[glib: 10/13] tools: Move glib-gettextize.in to tools directory




commit 0dc53687f42ea3c0d520119e47898338d7bfc922
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed May 11 13:09:17 2022 +0100

    tools: Move glib-gettextize.in to tools directory
    
    This tidies up the root directory a bit more.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 meson.build                                    | 16 +---------------
 glib-gettextize.in => tools/glib-gettextize.in |  0
 tools/meson.build                              | 14 ++++++++++++++
 3 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1619cfa2e9..3a5276e9ff 100644
--- a/meson.build
+++ b/meson.build
@@ -2377,27 +2377,13 @@ subdir('fuzzing')
 if build_tests
   subdir('tests')
 endif
+subdir('tools')
 
 # xgettext is optional (on Windows for instance)
 if find_program('xgettext', required : get_option('nls')).found()
   subdir('po')
 endif
 
-# Install glib-gettextize executable, if a UNIX-style shell is found
-if have_sh
-  # These should not contain " quotes around the values
-  gettextize_conf = configuration_data()
-  gettextize_conf.set('PACKAGE', 'glib')
-  gettextize_conf.set('VERSION', meson.project_version())
-  gettextize_conf.set('prefix', glib_prefix)
-  gettextize_conf.set('datarootdir', glib_datadir)
-  gettextize_conf.set('datadir', glib_datadir)
-  configure_file(input : 'glib-gettextize.in',
-    install_dir : glib_bindir,
-    output : 'glib-gettextize',
-    configuration : gettextize_conf)
-endif
-
 # Install m4 macros that other projects use
 install_data('m4macros/glib-2.0.m4', 'm4macros/glib-gettext.m4', 'm4macros/gsettings.m4',
   install_dir : join_paths(get_option('datadir'), 'aclocal'))
diff --git a/glib-gettextize.in b/tools/glib-gettextize.in
similarity index 100%
rename from glib-gettextize.in
rename to tools/glib-gettextize.in
diff --git a/tools/meson.build b/tools/meson.build
new file mode 100644
index 0000000000..f77ccc860d
--- /dev/null
+++ b/tools/meson.build
@@ -0,0 +1,14 @@
+# Install glib-gettextize executable, if a UNIX-style shell is found
+if have_sh
+  # These should not contain " quotes around the values
+  gettextize_conf = configuration_data()
+  gettextize_conf.set('PACKAGE', 'glib')
+  gettextize_conf.set('VERSION', meson.project_version())
+  gettextize_conf.set('prefix', glib_prefix)
+  gettextize_conf.set('datarootdir', glib_datadir)
+  gettextize_conf.set('datadir', glib_datadir)
+  configure_file(input : 'glib-gettextize.in',
+    install_dir : glib_bindir,
+    output : 'glib-gettextize',
+    configuration : gettextize_conf)
+endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]