Selaa lähdekoodia

re-add creation of topics html pages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53525 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 12 vuotta sitten
vanhempi
commit
aa6ea5c62d
2 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 8 0
      man/Makefile
  2. 1 0
      man/build_topics.py

+ 8 - 0
man/Makefile

@@ -48,6 +48,14 @@ define build
 GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" $(PYTHON) ./build_$(1).py $(2)
 endef
 
+define build_topics
+GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" $(PYTHON) ./build_topics.py $(HTMLDIR)
+endef
+
+$(HTMLDIR)/topics.html: $(ALL_HTML)
+	$(call build_topics)
+	touch $@
+
 $(HTMLDIR)/full_index.html: $(ALL_HTML) build_full_index.py build_html.py
 	$(call build,full_index)
 	touch $@

+ 1 - 0
man/build_topics.py

@@ -59,3 +59,4 @@ for key, values in sorted(keywords.iteritems()):
     write_html_footer(keyfile, "index.html")
 topicsfile.write("</ul>\n")
 write_html_footer(topicsfile, "index.html")  
+topicsfile.close()