File tree Expand file tree Collapse file tree 3 files changed +38
-9
lines changed Expand file tree Collapse file tree 3 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash -
2+ # ===============================================================================
3+ #
4+ # FILE: add_subtree.sh
5+ #
6+ # USAGE: ./add_subtree.sh
7+ #
8+ # DESCRIPTION:
9+ #
10+ # OPTIONS: ---
11+ # REQUIREMENTS: ---
12+ # BUGS: ---
13+ # NOTES: ---
14+ # AUTHOR: Dilawar Singh (), [email protected] 15+ # ORGANIZATION: NCBS Bangalore
16+ # CREATED: 05/18/2016 01:11:59 PM
17+ # REVISION: ---
18+ # ===============================================================================
19+
20+ set -o nounset # Treat unset variables as an error
21+ set -e
22+ set -x
23+
24+ if [[ ` pwd` == * " /moose" ]]; then
25+
26+ git subtree add --prefix moose-core \
27+ https://github.com/BhallaLab/moose-core master --squash
28+ git subtree add --prefix moose-examples \
29+ https://github.com/BhallaLab/moose-examples master --squash
30+ git subtree add --prefix moose-gui \
31+ https://github.com/BhallaLab/moose-gui master --squash
32+
33+ else
34+ echo " Run this script from top-level git directory."
35+ fi
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ set -x
2323
2424if [[ ` pwd` == * " /moose" ]]; then
2525
26- git subtree add --prefix moose-core \
26+ git subtree pull --prefix moose-core \
2727 https://github.com/BhallaLab/moose-core master --squash
28- git subtree add --prefix moose-examples \
28+ git subtree pull --prefix moose-examples \
2929 https://github.com/BhallaLab/moose-examples master --squash
30- git subtree add --prefix moose-gui \
30+ git subtree pull --prefix moose-gui \
3131 https://github.com/BhallaLab/moose-gui master --squash
3232
3333else
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments