From: Don Armstrong Date: Wed, 26 Jun 2013 00:55:53 +0000 (-0700) Subject: add update org files X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e5fe43a9dd4ec4be74238f65c2a5f644a1c9da27;p=bin.git add update org files --- diff --git a/update_org_files b/update_org_files new file mode 100755 index 0000000..648646e --- /dev/null +++ b/update_org_files @@ -0,0 +1,10 @@ +#!/bin/bash + +for a in $(mr list |grep 'list:'|grep -v 'finished'|awk -F'list: ' '{print $2}' 2>/dev/null); do + (cd "$a"; + if mr --no-recurse status |grep '^ M'|grep -q '.org$'; then + git commit -m'update org files' $(mr --no-recurse status |grep '^ M'|grep '.org$'|sed 's/^ M//g'); + git push; + fi; + ); +done; \ No newline at end of file