]> git.donarmstrong.com Git - bin.git/blobdiff - update_org_files
add update org files
[bin.git] / update_org_files
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