[recipes] Fixes for appdata generation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fixes for appdata generation
- Date: Wed, 7 Dec 2016 19:20:43 +0000 (UTC)
commit cd825042857216b9cd6113a70cf2a25277eb31bb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 7 14:20:09 2016 -0500
Fixes for appdata generation
Make sure the translations work.
data/Makefile.am | 15 +++++++++++++--
...ppdata.xml => org.gnome.Recipes.appdata.xml.in} | 0
po/POTFILES.in | 1 +
3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index fada99f..d38b41d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,6 +1,7 @@
-
-include $(top_srcdir)/git.mk
+EXTRA_DIST =
+
desktopdir = $(datadir)/applications
desktop_in_files = org.gnome.Recipes.desktop.in
@@ -10,6 +11,8 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
%.desktop: %.desktop.in
msgfmt --desktop -d $(top_srcdir)/po --template $< -o $@
+EXTRA_DIST += $(desktop_in_files)
+
ingredientsdir = $(pkgdatadir)/ingredients
imagesdir = $(pkgdatadir)/images
@@ -89,4 +92,12 @@ $(service_DATA): $(service_in_files) Makefile
GITIGNOREFILES = $(service_DATA)
appdatadir = $(datadir)/appdata
-appdata_DATA = appdata/org.gnome.Recipes.appdata.xml
+
+appdata_in_files = appdata/org.gnome.Recipes.appdata.xml.in
+
+appdata_DATA = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
+
+%.appdata.xml: %.appdata.xml.in
+ msgfmt --xml -d $(top_srcdir)/po --template $< -o $@
+
+EXTRA_DIST += $(appdata_in_files)
diff --git a/data/appdata/org.gnome.Recipes.appdata.xml b/data/appdata/org.gnome.Recipes.appdata.xml.in
similarity index 100%
rename from data/appdata/org.gnome.Recipes.appdata.xml
rename to data/appdata/org.gnome.Recipes.appdata.xml.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 034e549..43d1c65 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
data/org.gnome.Recipes.desktop.in
+data/appstream/org.gnome.Recipes.appstream.xml.in
src/chef-conflict-dialog.ui
src/gr-category-tile.ui
src/gr-chef-tile.ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]