]> git.donarmstrong.com Git - bin.git/commitdiff
add update org files
authorDon Armstrong <don@donarmstrong.com>
Wed, 26 Jun 2013 00:55:53 +0000 (17:55 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 26 Jun 2013 00:55:53 +0000 (17:55 -0700)
update_org_files [new file with mode: 0755]

diff --git a/update_org_files b/update_org_files
new file mode 100755 (executable)
index 0000000..648646e
--- /dev/null
@@ -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