Permalink
Browse files

Improve "make dist" remove generated doc from repo.

  • Loading branch information...
1 parent 861f28f commit bf0d278a4501b03e74d9e02309d667af2182c2a3 @ry ry committed Oct 3, 2009
Showing with 124 additions and 6,469 deletions.
  1. +3 −0 .gitignore
  2. +17 −9 Makefile
  3. +0 −2,146 doc/api.html
  4. +0 −2,260 doc/api.xml
  5. +61 −0 doc/common.xsl
  6. +28 −0 doc/manpage.xsl
  7. +0 −2,044 doc/node.1
  8. +15 −10 wscript
View
@@ -3,5 +3,8 @@ build
tags
.lock-wscript
*.pyc
+doc/api.xml
+doc/api.html
+doc/node.1
node
node_g
View
@@ -14,10 +14,10 @@ install:
uninstall:
@tools/waf-light uninstall
-
+
test: all
python tools/test.py --mode=release
-
+
test-all: all
python tools/test.py --mode=debug,release
@@ -40,26 +40,34 @@ doc/api.xml: doc/api.txt
asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt
doc/node.1: doc/api.xml
- xsltproc --output doc/node.1 \
- --nonet /etc/asciidoc/docbook-xsl/manpage.xsl \
- doc/api.xml
+ xsltproc --output doc/node.1 --nonet doc/manpage.xsl doc/api.xml
website-upload: doc
scp doc/* linode:~/tinyclouds/node/
clean:
+ @-rm doc/node.1 doc/api.xml doc/api.html
@tools/waf-light clean
distclean:
@tools/waf-light distclean
- @-rm -rf _build_
- @-rm -f Makefile
@-rm -f *.pyc
check:
@tools/waf-light check
-dist:
- @tools/waf-light dist
+VERSION=$(shell git-describe)
+TARNAME=node-$(VERSION)
+
+dist: doc/node.1 doc/api.html
+ git-archive --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
+ mkdir -p $(TARNAME)/doc
+ cp doc/node.1 $(TARNAME)/doc/node.1
+ cp doc/api.html $(TARNAME)/doc/api.html
+ tar rf $(TARNAME).tar \
+ $(TARNAME)/doc/node.1 \
+ $(TARNAME)/doc/api.html
+ rm -r $(TARNAME)
+ gzip -f -9 $(TARNAME).tar
.PHONY: benchmark clean dist distclean check uninstall install all test test-all website-upload
Oops, something went wrong.

0 comments on commit bf0d278

Please sign in to comment.