Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Jul 30, 2010
1 parent da03836 commit 02819a1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
config.* config.*
roundup roundup
.roundup.* .roundup.*
pages/
13 changes: 13 additions & 0 deletions Makefile
@@ -1,5 +1,8 @@
.POSIX: .POSIX:
SHELL = /bin/sh SHELL = /bin/sh
RM = rm
CP = cp
CD = cd


# The default target ... # The default target ...
all:: all::
Expand Down Expand Up @@ -77,6 +80,16 @@ install: $(INSTALL_PREREQUISITES)
install-man: man install-man: man
-for i in {1..9} ; do cp *.$$i $(mandir)/man$$i 2>/dev/null ; done -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 read: sup doc
$(BROWSER) ./roundup.html $(BROWSER) ./roundup.html


Expand Down
6 changes: 6 additions & 0 deletions Pages.mk
@@ -0,0 +1,6 @@
include ../config.mk

all :
$(GIT) add .
$(GIT) commit -q -m 'rebuild manual'
$(GIT) push local gh-pages
1 change: 1 addition & 0 deletions configure
Expand Up @@ -186,6 +186,7 @@ else stdutil xdg-open XDG_OPEN xdg-open
reconf BROWSER "${XDG_OPEN:-$FIREFOX}" reconf BROWSER "${XDG_OPEN:-$FIREFOX}"
fi fi


stdutil git GIT git
stdutil ronn RONN ronn stdutil ronn RONN ronn
stdutil shocco SHOCCO shocco stdutil shocco SHOCCO shocco


Expand Down

0 comments on commit 02819a1

Please sign in to comment.