Skip to content
Snippets Groups Projects
Commit 658e5413 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Added scripts to pull subtree.

parent 0a90e72d
No related branches found
No related tags found
No related merge requests found
#!/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 add --prefix moose-core \
https://github.com/BhallaLab/moose-core master --squash
git subtree add --prefix moose-examples \
https://github.com/BhallaLab/moose-examples master --squash
git subtree add --prefix moose-gui \
https://github.com/BhallaLab/moose-gui master --squash
else
echo "Run this script from top-level git directory."
fi
#!/bin/bash
set -e
declare -i a
PYC=`which python`
RUNDIR=./_test_dir_moose-examples_
echo "Creating $RUNDIR"
mkdir -p $RUNDIR
MATPLOTRC=data/matplotlibrc
echo "copying examples out of source"
cp -r moose-examples/* $RUNDIR/
PYFILES=`find $RUNDIR -name "*.py"`
for pyf in $PYFILES; do
let a=a+1
dn=`dirname $pyf`
fn=`basename $pyf`
# copy matplotlibrc file to working directory
cp $MATPLOTRC $dn/
(
cd $dn
echo "Executing $fn in directory $dn"
$PYC $fn
)
done
echo "Total $a scripts run"
#!/bin/bash
# This script updates the repository and its subrepositories, recursively.
git submodule update --init
git submodule foreach '[ "$path" = "moogli" ] && branch=geometry || branch=master; git pull origin $branch; git checkout $branch; git pull'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment