Explorar o código

Generate docs and distribute them

Morten Brix Pedersen %!s(int64=24) %!d(string=hai) anos
pai
achega
6722ce7c2b
Modificáronse 2 ficheiros con 16 adicións e 1 borrados
  1. 5 1
      Makefile
  2. 11 0
      docs/Makefile

+ 5 - 1
Makefile

@@ -18,6 +18,8 @@ DOCS = docs/CONFIG-README \
 	 docs/FORMATS \
 	 docs/Changelog \
 	 docs/CREDITS \
+	 docs/html/ \
+	 docs/pisg-doc.txt \
 
 DEVDOCS = docs/dev/API
 
@@ -77,8 +79,9 @@ pisg:
 	mkdir $(DIRNAME)/gfx
 	cp $(GFX) $(DIRNAME)/gfx
 
+	cd docs && make
 	mkdir $(DIRNAME)/docs
-	cp $(DOCS) $(DIRNAME)/docs
+	cp -r $(DOCS) $(DIRNAME)/docs
 
 	mkdir $(DIRNAME)/docs/dev
 	cp $(DEVDOCS) $(DIRNAME)/docs/dev
@@ -101,5 +104,6 @@ pisg:
 	mv pisg.zip newrelease/$(ZIPFILE)
 	mv $(DIRNAME) newrelease
 clean:
+	cd docs && make clean
 	rm -rf newrelease/
 	rm -rf $(DIRNAME)

+ 11 - 0
docs/Makefile

@@ -0,0 +1,11 @@
+# Dummy script to generate documentation, probably only works on my system
+# for now.  - mbp / 2002
+
+all:
+	jade -i html -t sgml -V nochunks -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl\#html pisg-doc.sgml | w3m -dump -T text/html > pisg-doc.txt
+	vim -c 'echo AddSpacers()' -c ':wq' pisg-doc.txt
+	docbook2html pisg-doc.sgml -o html
+
+clean:
+	rm -rf html
+	rm -f pisg-doc.txt