[Libosinfo] [PATCH 31/39] data: split x11-keyboard into one file per datamap

Daniel P. Berrange berrange at redhat.com
Mon Sep 28 15:51:49 UTC 2015


Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 configure.ac                                                | 1 +
 data/datamaps/Makefile.am                                   | 8 +-------
 data/datamaps/x11/Makefile.am                               | 1 +
 data/datamaps/{x11-keyboard.xml => x11/x11-keyboard.xml.in} | 7 -------
 4 files changed, 3 insertions(+), 14 deletions(-)
 create mode 100644 data/datamaps/x11/Makefile.am
 rename data/datamaps/{x11-keyboard.xml => x11/x11-keyboard.xml.in} (96%)

diff --git a/configure.ac b/configure.ac
index 12c04ff..3c4a781 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,6 +169,7 @@ AC_CONFIG_FILES([
 	data/Makefile
 	data/datamaps/Makefile
 	data/datamaps/windows/Makefile
+	data/datamaps/x11/Makefile
 	data/devices/Makefile
 	data/platforms/Makefile
 	data/platforms/qemu/Makefile
diff --git a/data/datamaps/Makefile.am b/data/datamaps/Makefile.am
index 7f04dc8..017912b 100644
--- a/data/datamaps/Makefile.am
+++ b/data/datamaps/Makefile.am
@@ -1,11 +1,5 @@
 
 SUBDIRS = \
 	windows \
+	x11 \
 	$(NULL)
-
-datamapdir = $(pkgdatadir)/db/datamaps/
-datamap_DATA =     \
-  x11-keyboard.xml   \
-  $(NULL)
-
-EXTRA_DIST = $(datamap_DATA)
diff --git a/data/datamaps/x11/Makefile.am b/data/datamaps/x11/Makefile.am
new file mode 100644
index 0000000..ee4552b
--- /dev/null
+++ b/data/datamaps/x11/Makefile.am
@@ -0,0 +1 @@
+include ../../Makefile.inc
diff --git a/data/datamaps/x11-keyboard.xml b/data/datamaps/x11/x11-keyboard.xml.in
similarity index 96%
rename from data/datamaps/x11-keyboard.xml
rename to data/datamaps/x11/x11-keyboard.xml.in
index 15a7cd5..0057259 100644
--- a/data/datamaps/x11-keyboard.xml
+++ b/data/datamaps/x11/x11-keyboard.xml.in
@@ -1,11 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- The datamaps in this file will be used to map the GETTEXT locale
-     codes to X11 keyboard layouts.
--->
-
 <libosinfo version="0.0.1">
-  <!-- GETTEXT locale to X11 keyboard layout mapping -->
   <datamap id="http://libosinfo.fedorahosted.org/x11-keyboard">
     <entry inval="af_ZA" outval="za"/>
     <entry inval="ar_AE" outval="ae"/>
-- 
2.4.3




More information about the Libosinfo mailing list