Rename en_US to sources
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 3 Apr 2013 19:02:29 +0000 (15:02 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 3 Apr 2013 19:44:45 +0000 (15:44 -0400)
The reason this directory exists is because we need to copy it into
$builddir so we can combine it with generated sources (we can't pass
multiple source paths into publican).

So instead of having en_US, renamed to en-US stop the confusion and rename
the sources to "sources". That gets copied to en-US which will then contain
the actual output.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
17 files changed:
doc/Wayland/Makefile.am
doc/Wayland/sources/Architecture.xml [moved from doc/Wayland/en_US/Architecture.xml with 100% similarity]
doc/Wayland/sources/Author_Group.xml [moved from doc/Wayland/en_US/Author_Group.xml with 100% similarity]
doc/Wayland/sources/Book_Info.xml [moved from doc/Wayland/en_US/Book_Info.xml with 100% similarity]
doc/Wayland/sources/Compositors.xml [moved from doc/Wayland/en_US/Compositors.xml with 100% similarity]
doc/Wayland/sources/Foreword.xml [moved from doc/Wayland/en_US/Foreword.xml with 100% similarity]
doc/Wayland/sources/Introduction.xml [moved from doc/Wayland/en_US/Introduction.xml with 100% similarity]
doc/Wayland/sources/Library.xml [moved from doc/Wayland/en_US/Library.xml with 100% similarity]
doc/Wayland/sources/Preface.xml [moved from doc/Wayland/en_US/Preface.xml with 100% similarity]
doc/Wayland/sources/Protocol.xml [moved from doc/Wayland/en_US/Protocol.xml with 100% similarity]
doc/Wayland/sources/Revision_History.xml [moved from doc/Wayland/en_US/Revision_History.xml with 100% similarity]
doc/Wayland/sources/Wayland.ent [moved from doc/Wayland/en_US/Wayland.ent with 100% similarity]
doc/Wayland/sources/Wayland.xml [moved from doc/Wayland/en_US/Wayland.xml with 100% similarity]
doc/Wayland/sources/images/icon.svg [moved from doc/Wayland/en_US/images/icon.svg with 100% similarity]
doc/Wayland/sources/images/wayland-architecture.png [moved from doc/Wayland/en_US/images/wayland-architecture.png with 100% similarity]
doc/Wayland/sources/images/wayland.png [moved from doc/Wayland/en_US/images/wayland.png with 100% similarity]
doc/Wayland/sources/images/x-architecture.png [moved from doc/Wayland/en_US/images/x-architecture.png with 100% similarity]

index f8f03da..cba1655 100644 (file)
@@ -5,7 +5,7 @@
 #
 # How this build works:
 # * the main target is Wayland, documentation ends up in $(builddir)/Wayland/
-# * hand-written chapters are located in en_US
+# * hand-written chapters are located in sources
 #   Publican does not take a source path, so to support out-of-tree builds
 #   these are copied to $(builddir)/en-US which is the actual directory
 #   Publican uses.
 #   $(builddir)/en-US
 # * run Publican on en-US
 publican_sources = \
-       $(srcdir)/en_US/Wayland.ent \
-       $(srcdir)/en_US/Wayland.xml \
-       $(srcdir)/en_US/Book_Info.xml \
-       $(srcdir)/en_US/Author_Group.xml \
-       $(srcdir)/en_US/Foreword.xml \
-       $(srcdir)/en_US/Preface.xml \
-       $(srcdir)/en_US/Revision_History.xml \
-       $(srcdir)/en_US/Introduction.xml \
-       $(srcdir)/en_US/Architecture.xml \
-       $(srcdir)/en_US/Protocol.xml \
-       $(srcdir)/en_US/Library.xml \
-       $(srcdir)/en_US/Compositors.xml \
-       $(srcdir)/en_US/images/icon.svg  \
-       $(srcdir)/en_US/images/wayland-architecture.png \
-       $(srcdir)/en_US/images/wayland.png  \
-       $(srcdir)/en_US/images/x-architecture.png
+       $(srcdir)/sources/Wayland.ent \
+       $(srcdir)/sources/Wayland.xml \
+       $(srcdir)/sources/Book_Info.xml \
+       $(srcdir)/sources/Author_Group.xml \
+       $(srcdir)/sources/Foreword.xml \
+       $(srcdir)/sources/Preface.xml \
+       $(srcdir)/sources/Revision_History.xml \
+       $(srcdir)/sources/Introduction.xml \
+       $(srcdir)/sources/Architecture.xml \
+       $(srcdir)/sources/Protocol.xml \
+       $(srcdir)/sources/Library.xml \
+       $(srcdir)/sources/Compositors.xml \
+       $(srcdir)/sources/images/icon.svg  \
+       $(srcdir)/sources/images/wayland-architecture.png \
+       $(srcdir)/sources/images/wayland.png  \
+       $(srcdir)/sources/images/x-architecture.png
 
 if HAVE_PUBLICAN
 if HAVE_XSLTPROC
 noinst_DATA = Wayland $(publican_targets)
 pubdir = $(docdir)/Wayland/en-US
 
-publican_targets = $(publican_sources:$(srcdir)/en_US%=$(builddir)/en-US%) \
+publican_targets = $(publican_sources:$(srcdir)/sources%=$(builddir)/en-US%) \
        en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml \
        en-US/WaylandClientAPI.xml
 
@@ -71,10 +71,10 @@ en-US/WaylandClientAPI.xml: $(top_builddir)/doc/doxygen/xml/index.xml $(srcdir)/
        $(AM_V_GEN)$(XSLTPROC) $(srcdir)/doxygen-to-publican.xsl \
                $(top_builddir)/doc/doxygen/xml/clientAPI.xml > en-US/WaylandClientAPI.xml
 
-# Copy the en_US source files into en-US destination
+# Copy the sources source files into en-US destination
 # This is required for out-of-source-tree build as publican does not allow us
 # to specify the location of the source code.
-$(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_sources)
+$(builddir)/en-US/%: $(srcdir)/sources/% en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_sources)
        $(AM_V_GEN)cp -f $< $@
        $(AM_V_GEN)chmod a+w $@