From e5fe43a9dd4ec4be74238f65c2a5f644a1c9da27 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 25 Jun 2013 17:55:53 -0700 Subject: [PATCH] add update org files --- update_org_files | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 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 -- 2.39.5