Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 29 lines (21 sloc) 0.472 kb
8fe2ed3 @Sannis Add gh_pages.sh to simplify docs update
authored
1 #!/bin/bash
2
ef66d53 @Sannis Improve gh_pags.sh, add `node-waf doc` execution
authored
3
4
8fe2ed3 @Sannis Add gh_pages.sh to simplify docs update
authored
5 BRANCH=`git branch 2> /dev/null | grep "*" | sed 's#*\ \(.*\)#\1#'`
6 if [ "$BRANCH" != "master" ]
7 then
8 exit 1
9 fi
10
11 DESC=`git describe`
12
ef66d53 @Sannis Improve gh_pags.sh, add `node-waf doc` execution
authored
13 # Update master branch
14 node-waf doc
15 git add doc/*.js doc/*.html
16 git ci -m "Update docs to $DESC"
17
18 # Update gh-pages branch
19 TMP=`mktemp --tmpdir -d temp.XXXXXXXXXX`
8fe2ed3 @Sannis Add gh_pages.sh to simplify docs update
authored
20 cp ./doc/* $TMP
21 rm -f $TMP/*~
22 git checkout gh-pages
23 cp $TMP/* ./
24 git add ./*.js ./*.html
25 git ci -m "Update docs to $DESC"
26 git checkout master
27 rm -rf $TMP
28
Something went wrong with that request. Please try again.