update live
[mdref/mdref.m6w6.name] / update.sh
1 #!/bin/bash
2
3 # pull the app and all refs
4 git submodule foreach "git pull -qr origin master"
5
6 cd refs
7 for ref in http pq; do
8 ../mdref/bin/ref2stub $ref >/dev/null
9
10 # this is semantically awful
11 if ! diff -q {,$ref/}$ref.stub.php; then
12 cp {,$ref/}$ref.stub.php
13 (cd $ref && git commit -am "update live stub" && git push)
14 fi
15 done
16 cd ..
17 git ci -am "update live" && git push