about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-05 01:12:30 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-05 01:15:59 -0700
commitce5ea36f1a3fea13035e73ecd677699bfc41350d (patch)
tree7ea879996b14bdf7f7d96f709213a7de658ead65
parent352e5c7cc4f82b921e448d14db1236d5c9d08da8 (diff)
downloadlocal-openid-0.1.0.tar.gz
Documentation bits v0.1.0
-rw-r--r--.document4
-rw-r--r--.gitignore2
-rw-r--r--GNUmakefile19
-rw-r--r--Manifest.txt3
4 files changed, 28 insertions, 0 deletions
diff --git a/.document b/.document
new file mode 100644
index 0000000..34f4172
--- /dev/null
+++ b/.document
@@ -0,0 +1,4 @@
+History.txt
+LICENSE.txt
+README.txt
+bin/local-openid
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b6fc95d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+pkg
+doc
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..531f07a
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,19 @@
+all:
+
+publish_doc:
+        -git set-file-times
+        $(MAKE) doc
+        $(MAKE) doc_gz
+        rsync -av --delete doc/ dcvr:/srv/bogomips/local-openid/
+        git ls-files | xargs touch
+
+doc: .document
+        rdoc -Na -m README.txt -t "$(shell sed -ne '1s/^= //p' README.txt)"
+
+# Create gzip variants of the same timestamp as the original so nginx
+# "gzip_static on" can serve the gzipped versions directly.
+doc_gz: suf := html js css
+doc_gz: globs := $(addprefix doc/*.,$(suf)) $(addprefix doc/*/*.,$(suf))
+doc_gz: docs := $(wildcard $(globs))
+doc_gz:
+        for i in $(docs); do gzip < $$i > $$i.gz; touch -r $$i $$i.gz; done
diff --git a/Manifest.txt b/Manifest.txt
index 64577ab..3715975 100644
--- a/Manifest.txt
+++ b/Manifest.txt
@@ -1,3 +1,6 @@
+.document
+.gitignore
+GNUmakefile
 History.txt
 LICENSE.txt
 Manifest.txt