Merge branch 'master' of http://github.com/danvk/dygraphs
[dygraphs.git] / commit-hook / commit.sh
1 #!/bin/bash
2 id=$1;
3
4 echo id: $id > ./id.txt
5 dir=git-$id
6 mkdir $dir
7 cd $dir
8
9 # TODO(danvk): any way to clone at a particular revision?
10 git clone --depth 0 git://github.com/danvk/dygraphs.git
11 cd dygraphs
12 ./generate-combined.sh
13
14 # Copy data over to http://www.danvk.org/dygraphs/
15 cp tests/*.html tests/*.js ~/danvk.org/dygraphs/tests/
16 cp dygraph.js dygraph-canvas.js dygraph-combined.js gadget.xml excanvas.js thumbnail.png docs/* ~/danvk.org/dygraphs/
17
18 cd ../..
19 rm -rf $dir