-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpull_subtree.sh
executable file
·35 lines (31 loc) · 1.01 KB
/
pull_subtree.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash -
#===============================================================================
#
# FILE: pull_subtree.sh
#
# USAGE: ./pull_subtree.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dilawar Singh (), [email protected]
# 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 pull --prefix moose-core \
https://github.com/BhallaLab/moose-core master --squash
git subtree pull --prefix moose-examples \
https://github.com/BhallaLab/moose-examples master --squash
git subtree pull --prefix moose-gui \
https://github.com/BhallaLab/moose-gui master --squash
else
echo "Run this script from top-level git directory."
fi