chiark / gitweb /
Revert "build-sys: substitute strings in systemd.unit(5)"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Mar 2013 17:09:52 +0000 (13:09 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 30 Mar 2013 00:30:21 +0000 (20:30 -0400)
This reverts commits c78ab91132aab9193f3c17a9a206f8825ff4be84
and 185c3be03cec26023acc11b49553753aa7330a1d.

It is simpler to just use includes...

Makefile-man.am
Makefile.am
make-man-rules.py
man/.gitignore
man/systemd.unit.xml [moved from man/systemd.unit.xml.in with 100% similarity]

index 6e63135756059074cc18a8227ae9eb4f0a1cbc7c..bc2f9b46964416111f8fdd59320d96f2b4f6a077 100644 (file)
@@ -896,6 +896,3 @@ MANPAGES_ALIAS += \
 
 
 endif
-
-CLEANFILES += \
-       man/systemd.unit.xml
index 86ad16888a075763c37fbe069dde99bf4f01e607..0d572cd7b2dd03f2089c0fa6ff16d3caf15f35b2 100644 (file)
@@ -558,7 +558,7 @@ CLEANFILES += \
 
 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
 
-XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_srcdir)/man/*.xml.in $(top_builddir)/man/*.xml)
+XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
 update-man-list: make-man-rules.py $(XML_GLOB)
        $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
        $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
index 9f53b55bbd3ff32ceeefe44d9febf3e9360dd279..46a586374f6d34dbd1fba2beef5b3bf127d86ff1 100644 (file)
@@ -21,7 +21,6 @@ from __future__ import print_function
 import xml.etree.ElementTree as tree
 import collections
 import sys
-import os
 
 SECTION = '''\
 MANPAGES += \\
@@ -46,12 +45,6 @@ HEADER = '''\
 
 '''
 
-CLEANFILES = '''\
-
-CLEANFILES += \\
-       {cleanfiles}
-'''
-
 HTML_ALIAS_RULE = '''\
 {}.html: {}.html
        $(html-alias)
@@ -89,7 +82,7 @@ def create_rules(*xml_files):
 def mjoin(files):
     return ' \\\n\t'.join(sorted(files) or '#')
 
-def make_makefile(rules, cleanfiles):
+def make_makefile(rules):
     return HEADER + '\n'.join(
         (CONDITIONAL if conditional else SECTION).format(
             manpages=mjoin(set(rulegroup.values())),
@@ -101,13 +94,8 @@ def make_makefile(rules, cleanfiles):
                                 for k,v in sorted(rulegroup.items())
                                 if k != v),
             conditional=conditional)
-        for conditional,rulegroup in sorted(rules.items())) + \
-        CLEANFILES.format(cleanfiles=mjoin(cleanfiles))
+        for conditional,rulegroup in sorted(rules.items()))
 
 if __name__ == '__main__':
-    sources = set(sys.argv[1:])
-    basenames = [os.path.basename(source) for source in sources]
-    spares = set([source for source in sources
-                  if os.path.basename(source) + '.in' in basenames])
-    rules = create_rules(*(sources - spares))
-    print(make_makefile(rules, spares), end='')
+    rules = create_rules(*sys.argv[1:])
+    print(make_makefile(rules), end='')
index fcf4dabd2a69a7c617bf86087f83b4666a70190f..3798c75f1db3f5aa45abed0084487b4782963f04 100644 (file)
@@ -1,5 +1,4 @@
 /systemd.directives.xml
 /systemd.index.xml
-/systemd.unit.xml
 /*.[13578]
 /python-systemd/
similarity index 100%
rename from man/systemd.unit.xml.in
rename to man/systemd.unit.xml