-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Expanded version of notes from #4 .
Pushed new branch with new content:
https://github.com/Slicer/teem/tree/20250619_UpdateWithSVN
#!/bin/bash
# This script is designed to assist with synchronizing
# teem with the svn upstream version
#
WORKING_DIR=/localcache/Users/johnsonhj/src/teem-svn-sync
datestamp=$(date +%Y%m%d)
BRANCH_NAME=${datestamp}_UpdateWithSVN
if [ ! -d ${WORKING_DIR}/teem ]; then
mkdir ${WORKING_DIR}
cd ${WORKING_DIR}
git clone https://github.com/Slicer/teem.git
fi
cd ${WORKING_DIR}/teem/
git remote add upstream [email protected]:Slicer/teem.git
git checkout origin/master -b ${BRANCH_NAME}
git svn --version |grep git-svn
if [ $? -ne 0 ]; then
sudo apt-get install git-svn
fi
git svn init https://svn.code.sf.net/p/teem/code/teem/trunk
git update-ref refs/remotes/git-svn refs/remotes/origin/master
cd ${WORKING_DIR}/teem/
git svn rebase && git push upstream ${BRANCH_NAME}:${BRANCH_NAME}
if [ "$1" == "test" ]; then
mkdir ${WORKING_DIR}/teem-bld
cd ${WORKING_DIR}/teem-bld
cmake ${WORKING_DIR}/teem
make Experimental
fi