[gnome-builder] meson-build: Clean up ctags check



commit 86cde46b9a4f1c95097cd0f5a073e09be0660e0e
Author: Patrick Griffis <tingping tingping se>
Date:   Sat Feb 25 20:17:08 2017 -0500

    meson-build: Clean up ctags check

 data/gsettings/meson.build |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/data/gsettings/meson.build b/data/gsettings/meson.build
index 8ede17f..482f699 100644
--- a/data/gsettings/meson.build
+++ b/data/gsettings/meson.build
@@ -2,16 +2,13 @@ schema_dir = join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
 
 # Perhaps this should be moved to the plugin
 ctags_path = 'ctags'
-ctags = find_program('ctags-exuberant', required: false)
-if not ctags.found()
-  ctags = find_program('exctags', required: false)
-  if not ctags.found()
-    ctags = find_program('ectags', required: false)
-    if not ctags.found()
-      ctags = find_program('ctags', required: false)
-    endif
-  endif
-endif
+ctags = find_program(
+  'ctags',
+  'ctags-exuberant',
+  'exctags',
+  'ectags',
+  required: false
+)
 if ctags.found()
   ctags_path = ctags.path()
 endif


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