From 3bb481d543b7c35e054ea672801a3ae1a81b5aba Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawars@ncbs.res.in>
Date: Thu, 17 Nov 2016 15:48:27 +0530
Subject: [PATCH] Added script to merge changes from this repo to all subtrees.
 [ skip ci ]

---
 scripts/push_subtree.sh | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100755 scripts/push_subtree.sh

diff --git a/scripts/push_subtree.sh b/scripts/push_subtree.sh
new file mode 100755
index 00000000..3c1dd687
--- /dev/null
+++ b/scripts/push_subtree.sh
@@ -0,0 +1,35 @@
+#!/bin/bash - 
+#===============================================================================
+#
+#          FILE: pull_subtree.sh
+# 
+#         USAGE: ./pull_subtree.sh 
+# 
+#   DESCRIPTION: 
+# 
+#       OPTIONS: ---
+#  REQUIREMENTS: ---
+#          BUGS: ---
+#         NOTES: ---
+#        AUTHOR: Dilawar Singh (), dilawars@ncbs.res.in
+#  ORGANIZATION: NCBS Bangalore
+#       CREATED: 05/18/2016 01:11:59 PM
+#      REVISION:  ---
+#===============================================================================
+
+set -o nounset                              # Treat unset variables as an error
+set -e
+set -x
+
+if [[ `pwd` == *"/moose" ]]; then
+
+    git subtree push --prefix moose-core \
+        https://github.com/BhallaLab/moose-core master --squash
+    git subtree push --prefix moose-examples \
+        https://github.com/BhallaLab/moose-examples master --squash 
+    git subtree push --prefix moose-gui \
+        https://github.com/BhallaLab/moose-gui master --squash
+
+else
+    echo "Run this script from top-level git directory."
+fi
-- 
GitLab