[bijiben/wip/inigomartinez/meson: 6/7] build: Moved update mime data script to source root directory



commit dfb50dbb07ad8047049ddbbbaf365d3a727f190b
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Jun 23 11:20:19 2017 +0200

    build: Moved update mime data script to source root directory
    
    Although mime file is created on data directory, the mime
    update script should be located in the source root directory.

 data/meson.build                                  |    4 ----
 meson.build                                       |    4 ++++
 data/meson_update_mime.py => meson_update_mime.py |    0
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 8759a36..34d2041 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -14,10 +14,6 @@ custom_target(
   install_dir: join_paths(bijiben_datadir, 'mime', 'packages')
 )
 
-if get_option('enable-update-mimedb')
-  meson.add_install_script('meson_update_mime.py')
-endif
-
 info = 'org.gnome.bijiben.metainfo.xml'
 
 custom_target(
diff --git a/meson.build b/meson.build
index ad1805e..249eb69 100644
--- a/meson.build
+++ b/meson.build
@@ -158,5 +158,9 @@ subdir('help')
 
 meson.add_install_script('meson_post_install.py')
 
+if get_option('enable-update-mimedb')
+  meson.add_install_script('meson_update_mime.py')
+endif
+
 message('  Version:          ' + bijiben_version)
 message('  Enable Zeitgeist  ' + (get_option('enable-zeitgeist') ? 'yes' : 'no'))
diff --git a/data/meson_update_mime.py b/meson_update_mime.py
similarity index 100%
rename from data/meson_update_mime.py
rename to meson_update_mime.py


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