]> Creatis software - clitk.git/blob - tests/fetch_data_test.sh
ce581b67187fe1eeb3abe444a94a20ab4f255942
[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 git pull
16 else
17 git clone $repo $1
18 exit 1
19 fi
20
21
22 exit 0
23