]> Creatis software - clitk.git/commitdiff
scripts to pull data
authormpech <maxime.pech@insa-lyon.fr>
Wed, 29 Jun 2011 11:32:57 +0000 (13:32 +0200)
committermpech <maxime.pech@insa-lyon.fr>
Wed, 29 Jun 2011 11:32:57 +0000 (13:32 +0200)
todo : pull instead of clone if it already exists

tests/fetch_data_test.bat [new file with mode: 0644]
tests/fetch_data_test.sh [new file with mode: 0755]

diff --git a/tests/fetch_data_test.bat b/tests/fetch_data_test.bat
new file mode 100644 (file)
index 0000000..40272ab
--- /dev/null
@@ -0,0 +1,3 @@
+# take in arguments the folder to pull in
+# get repo's name
+# run git pull
diff --git a/tests/fetch_data_test.sh b/tests/fetch_data_test.sh
new file mode 100755 (executable)
index 0000000..e31c84f
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# arg[1] is TESTING_BINARY_DIR
+# This script has been edited from itk/Modules/ThirdParty/NIFTI/src/nifti/Testing/nifti_regress_test/cmake_testscripts/fetch_data_test.sh
+if [ $# -lt 1 ]
+then
+echo Missing Binary directory name
+exit 1
+fi
+
+repo=http://localhost/data/.git
+
+if cd $1
+then
+echo working in `pwd`
+else
+echo can\'t cd to $1
+exit 1
+fi
+
+git clone $server$archive $1
+exit 0
+