Skip to content

Commit c31c9eb

Browse files
author
Dilawar Singh
committed
Scripts to pull the subtree into moose working tree.
1 parent e402660 commit c31c9eb

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

scripts/add_subtree.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

scripts/pull_subtree.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ set -x
2323

2424
if [[ `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

3333
else

scripts/update-repository

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)