[gnome-software] Move the AppData files to a new directory



commit 12f2acfbd8749cbf4b427ad5887eb91318dcfc38
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 7 14:36:05 2013 +0100

    Move the AppData files to a new directory
    
    This allows us to add screenshots there too in the future.

 configure.ac                                     |    1 +
 data/Makefile.am                                 |   10 +---------
 data/appdata/Makefile.am                         |    8 ++++++++
 data/{ => appdata}/gnome-software.appdata.xml.in |    0
 po/POTFILES.in                                   |    2 +-
 5 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0494fd0..8de8568 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,7 @@ dnl ---------------------------------------------------------------------------
 AC_CONFIG_FILES([
 Makefile
 po/Makefile.in
+data/appdata/Makefile
 data/featured.ini
 data/Makefile
 data/icons/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index de2a043..bbacca1 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,4 +1,5 @@
 SUBDIRS =                                              \
+       appdata                                         \
        icons
 
 resourcesdir = $(datadir)/gnome-software
@@ -18,11 +19,6 @@ dist_resources_DATA =                                        \
        stars3.png                                      \
        stars4.png          
 
- INTLTOOL_XML_RULE@
-appdatadir = $(datadir)/appdata
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
-appdata_in_files = gnome-software.appdata.xml.in
-
 install-sample-data:
        wget -O fedora-20.xml.gz http://people.freedesktop.org/~hughsient/temp/fedora-20.xml.gz; \
        mkdir -p $(DESTDIR)$(datadir)/app-info/xmls; \
@@ -36,12 +32,8 @@ install-sample-data:
        cd -
 
 EXTRA_DIST =                                           \
-       $(appdata_in_files)                             \
        featured.ini.in
 
-CLEANFILES =                                           \
-       $(appdata_DATA)
-
 MAINTAINERCLEANFILES =                                 \
        *~                                              \
        Makefile.in
diff --git a/data/appdata/Makefile.am b/data/appdata/Makefile.am
new file mode 100644
index 0000000..178439b
--- /dev/null
+++ b/data/appdata/Makefile.am
@@ -0,0 +1,8 @@
+ INTLTOOL_XML_RULE@
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gnome-software.appdata.xml.in
+EXTRA_DIST = $(appdata_in_files)
+CLEANFILES = $(appdata_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/data/gnome-software.appdata.xml.in b/data/appdata/gnome-software.appdata.xml.in
similarity index 100%
rename from data/gnome-software.appdata.xml.in
rename to data/appdata/gnome-software.appdata.xml.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index baa477e..b6a0866 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,4 @@
-data/gnome-software.appdata.xml.in
+data/appdata/gnome-software.appdata.xml.in
 [type: gettext/glade]src/app-menu.ui
 [type: gettext/glade]src/app-tile.ui
 src/gnome-software.desktop.in


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