aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 11:37:40 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 12:16:52 (GMT)
commit54fbcf7b9a3351ae482b6fbfdbe132a86db662c8 (patch)
tree72af051e6e39ba7bb73ed91c014fa6327300b494
parentf249c12a9919c2e73c0793a1a6f57361f5cecbd1 (diff)
Auto-translate camorama.appdata.xml
Add locale translations for camorama.appdata.xml too. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am17
-rw-r--r--Makefile.in61
-rw-r--r--camorama.appdata.xml.in (renamed from camorama.appdata.xml)0
-rw-r--r--po/POTFILES.in2
5 files changed, 59 insertions, 22 deletions
diff --git a/.gitignore b/.gitignore
index 887ef57..600dad6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
*.o
*.gmo
autom4te.cache/
+camorama.appdata.xml
camorama.desktop
config.h
config.log
diff --git a/Makefile.am b/Makefile.am
index d1ab325..01efddf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,16 +2,20 @@ desktopdir = $(datadir)/applications
desktop_in_files = camorama.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+appdatadir = $(datadir)/metainfo
+appdata_in_files = camorama.appdata.xml.in
+nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
SUBDIRS = src pixmaps data po
-EXTRA_DIST = autogen.sh \
- camorama.desktop.in \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in
+EXTRA_DIST = \
+ autogen.sh \
+ camorama.desktop.in \
+ camorama.appdata.xml.in
CLEANFILES=\
camorama.desktop \
+ camorama.appdata.xml \
po/camorama.pot
pixmapdir = $(datadir)/pixmaps
@@ -41,3 +45,6 @@ fi
camorama.desktop: camorama.desktop.in
msgfmt --desktop -d $(top_srcdir)/po --template $< -o $@
+
+camorama.appdata.xml: camorama.appdata.xml.in
+ msgfmt --xml -d $(top_srcdir)/po --template $< -o $@
diff --git a/Makefile.in b/Makefile.in
index 9d93f85..67715dc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,8 +155,8 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(desktopdir)"
-DATA = $(desktop_DATA)
+am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(appdatadir)"
+DATA = $(desktop_DATA) $(nodist_appdata_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
@@ -359,15 +359,18 @@ top_srcdir = @top_srcdir@
desktopdir = $(datadir)/applications
desktop_in_files = camorama.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+appdatadir = $(datadir)/metainfo
+appdata_in_files = camorama.appdata.xml.in
+nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
SUBDIRS = src pixmaps data po
-EXTRA_DIST = autogen.sh \
- camorama.desktop.in \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in
+EXTRA_DIST = \
+ autogen.sh \
+ camorama.desktop.in \
+ camorama.appdata.xml.in
CLEANFILES = \
camorama.desktop \
+ camorama.appdata.xml \
po/camorama.pot
pixmapdir = $(datadir)/pixmaps
@@ -444,6 +447,27 @@ uninstall-desktopDATA:
@list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir)
+install-nodist_appdataDATA: $(nodist_appdata_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(nodist_appdata_DATA)'; test -n "$(appdatadir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(appdatadir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(appdatadir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdatadir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(appdatadir)" || exit $$?; \
+ done
+
+uninstall-nodist_appdataDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(nodist_appdata_DATA)'; test -n "$(appdatadir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(appdatadir)'; $(am__uninstall_files_from_dir)
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
@@ -747,7 +771,7 @@ check: check-recursive
all-am: Makefile $(DATA) config.h
installdirs: installdirs-recursive
installdirs-am:
- for dir in "$(DESTDIR)$(desktopdir)"; do \
+ for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(appdatadir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
@@ -802,7 +826,8 @@ info: info-recursive
info-am:
-install-data-am: install-data-local install-desktopDATA
+install-data-am: install-data-local install-desktopDATA \
+ install-nodist_appdataDATA
install-dvi: install-dvi-recursive
@@ -848,7 +873,7 @@ ps: ps-recursive
ps-am:
-uninstall-am: uninstall-desktopDATA
+uninstall-am: uninstall-desktopDATA uninstall-nodist_appdataDATA
.MAKE: $(am__recursive_targets) all install-am install-strip
@@ -862,12 +887,13 @@ uninstall-am: uninstall-desktopDATA
install-data install-data-am install-data-local \
install-desktopDATA install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs installdirs-am maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-desktopDATA
+ install-info-am install-man install-nodist_appdataDATA \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
+ tags-am uninstall uninstall-am uninstall-desktopDATA \
+ uninstall-nodist_appdataDATA
.PRECIOUS: Makefile
@@ -898,6 +924,9 @@ fi
camorama.desktop: camorama.desktop.in
msgfmt --desktop -d $(top_srcdir)/po --template $< -o $@
+camorama.appdata.xml: camorama.appdata.xml.in
+ msgfmt --xml -d $(top_srcdir)/po --template $< -o $@
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff --git a/camorama.appdata.xml b/camorama.appdata.xml.in
index 5423913..5423913 100644
--- a/camorama.appdata.xml
+++ b/camorama.appdata.xml.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ad19fde..a20a5c2 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,6 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
-camorama.appdata.xml
+camorama.appdata.xml.in
camorama.desktop.in
data/camorama.glade
data/camorama.schemas

Privacy Policy