[gnome-builder] meson-templates: use build-aux/meson/postinstall.py



commit 218bd73ddfd05e6d8509ad95e169636bc06b1438
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 4 12:21:50 2017 -0700

    meson-templates: use build-aux/meson/postinstall.py
    
    This is the path used in Nautilus, and I like it.

 .../meson-templates/meson_templates/__init__.py    |    4 ++--
 .../meson/postinstall.py}                          |    0
 .../meson_templates/resources/meson.build          |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/meson-templates/meson_templates/__init__.py 
b/plugins/meson-templates/meson_templates/__init__.py
index 1a97afb..087d0d1 100644
--- a/plugins/meson-templates/meson_templates/__init__.py
+++ b/plugins/meson-templates/meson_templates/__init__.py
@@ -170,7 +170,7 @@ class MesonTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
         modes = {
             'resources/src/hello.js.in': 0o750,
             'resources/src/hello.py.in': 0o750,
-            'resources/meson_post_install.py': 0o750,
+            'resources/build-aux/meson/postinstall.py': 0o750,
         }
 
         expands = {
@@ -244,7 +244,7 @@ class GnomeProjectTemplate(MesonTemplate):
         files['resources/data/hello.appdata.xml.in'] = 'data/%(appid)s.appdata.xml.in'
         files['resources/data/hello.gschema.xml'] = 'data/%(appid)s.gschema.xml'
         files['resources/data/meson.build'] = 'data/meson.build'
-        files['resources/meson_post_install.py'] = 'meson_post_install.py'
+        files['resources/build-aux/meson/postinstall.py'] = 'build-aux/meson/postinstall.py'
         files['resources/po/LINGUAS'] = 'po/LINGUAS'
         files['resources/po/meson.build'] = 'po/meson.build'
         files['resources/po/POTFILES'] = 'po/POTFILES'
diff --git a/plugins/meson-templates/meson_templates/resources/meson_post_install.py 
b/plugins/meson-templates/meson_templates/resources/build-aux/meson/postinstall.py
similarity index 100%
rename from plugins/meson-templates/meson_templates/resources/meson_post_install.py
rename to plugins/meson-templates/meson_templates/resources/build-aux/meson/postinstall.py
diff --git a/plugins/meson-templates/meson_templates/resources/meson.build 
b/plugins/meson-templates/meson_templates/resources/meson.build
index cf66a08..64347cb 100644
--- a/plugins/meson-templates/meson_templates/resources/meson.build
+++ b/plugins/meson-templates/meson_templates/resources/meson.build
@@ -21,4 +21,4 @@ subdir('data'){{end}}
 subdir('src')
 {{if enable_i18n}}subdir('po'){{end}}
 {{if enable_gnome}}
-meson.add_install_script('meson_post_install.py'){{end}}
+meson.add_install_script('build-aux/meson/postinstall.py'){{end}}


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