Permalink
Browse files

gh-pages

  • Loading branch information...
bmizerany committed Jul 30, 2010
1 parent da03836 commit 02819a1a7593b8f10faf63d3df8a895d1b7fbd2e
Showing with 21 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +13 −0 Makefile
  3. +6 −0 Pages.mk
  4. +1 −0 configure
View
@@ -5,3 +5,4 @@
config.*
roundup
.roundup.*
+pages/
View
@@ -1,5 +1,8 @@
.POSIX:
SHELL = /bin/sh
+RM = rm
+CP = cp
+CD = cd
# The default target ...
all::
@@ -77,6 +80,16 @@ install: $(INSTALL_PREREQUISITES)
install-man: man
-for i in {1..9} ; do cp *.$$i $(mandir)/man$$i 2>/dev/null ; done
+.PHONY: pages
+pages : doc
+ -$(RM) -rf pages
+ $(GIT) fetch -q gist
+ $(GIT) branch -f gh-pages gist/gh-pages
+ $(GIT) clone -q -o local -b gh-pages . pages
+ $(CP) $(DOCS) $(PWD)/pages
+ $(CP) Pages.mk pages/Makefile
+ $(CD) pages && $(MAKE) $(MFLAGS) all
+
read: sup doc
$(BROWSER) ./roundup.html
View
@@ -0,0 +1,6 @@
+include ../config.mk
+
+all :
+ $(GIT) add .
+ $(GIT) commit -q -m 'rebuild manual'
+ $(GIT) push local gh-pages
View
@@ -186,6 +186,7 @@ else stdutil xdg-open XDG_OPEN xdg-open
reconf BROWSER "${XDG_OPEN:-$FIREFOX}"
fi
+stdutil git GIT git
stdutil ronn RONN ronn
stdutil shocco SHOCCO shocco

0 comments on commit 02819a1

Please sign in to comment.