X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=update.sh;fp=update.sh;h=9b427f4485e7706f2e92df96b07b91a558dfa2c0;hb=4bf0086c56206e9c152a16c9072f163ee22ecd61;hp=0000000000000000000000000000000000000000;hpb=9626dfff439e879c91ff16ad224ffe96b2e84b0f;p=mdref%2Fmdref.m6w6.name diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..9b427f4 --- /dev/null +++ b/update.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# pull the app and all refs +git submodule foreach "git pull -qr origin master" + +cd refs +for ref in http pq; do + ../mdref/bin/ref2stub $ref >/dev/null + + # this is semantically awful + if ! diff -q {,$ref/}$ref.stub.php; then + cp {,$ref/}$ref.stub.php + (cd $ref && git commit -am "update live stub" && git push) + fi +done +cd ..