]> Creatis software - clitk.git/blob - tests/fetch_data_test.sh
scripts to pull data
[clitk.git] / tests / fetch_data_test.sh
1 #!/bin/sh
2 #
3 # arg[1] is TESTING_BINARY_DIR
4 # This script has been edited from itk/Modules/ThirdParty/NIFTI/src/nifti/Testing/nifti_regress_test/cmake_testscripts/fetch_data_test.sh
5 if [ $# -lt 1 ]
6 then
7 echo Missing Binary directory name
8 exit 1
9 fi
10
11 repo=http://localhost/data/.git
12
13 if cd $1
14 then
15 echo working in `pwd`
16 else
17 echo can\'t cd to $1
18 exit 1
19 fi
20
21 git clone $server$archive $1
22 exit 0
23