]> Creatis software - creaToolsTools.git/blob - Install/scripts/configure.sh
65657e29c04132febf851562e5ac989ca25c9d99
[creaToolsTools.git] / Install / scripts / configure.sh
1 #!/bin/sh
2
3
4 # used by make.sh and make-install.sh (that replace All.sh)
5 # use 'source configure.sh'
6
7
8 #allow user to choose the generation dir
9 #allow user to choose to generate the doc or not
10 #allow user to choose where he wants to get the sources from : CVS / HTML
11
12 echo $#
13 echo "----------"
14 echo $0
15 echo $1
16 echo $2
17 echo $3
18 echo $4
19 echo $5
20 echo $6
21 echo $7
22 echo "----------"
23
24 if [ $# != 7 ]
25 then 
26 echo
27 echo
28 echo "==================================================="
29 echo "WRONG NUMBER OF ARGUMENTS IN YOUR configure.sh FILE"
30 echo "==================================================="
31 echo
32 echo
33 echo "Should be :"
34 echo "<nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version> <where are creaTools sources>"
35 echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
36 echo "with 'GDCM Version' : GDCM1 / GDCM2"
37 echo "with 'where are creaTools sources' :  where do you want to get them from ? CVS / HTML"
38 echo " "
39 exit 0
40 fi
41
42 generationdir=$1
43 docgeneration=$2
44 cvsUserName=$3
45 installPrefix=$4
46 buildType=$5
47 gdcmVersion=$6
48 sourcesFrom=$7
49
50 scriptDir=$PWD
51
52 # start_point : used at debug time : start point of the script
53 # ex : if everything is OK, but bbtkGEditor, 
54 # cvs upate bbtkGEditor manually,and use :
55 # start_point=10
56 # in order not to 'cvs checkout' everything, nor recompile everything.
57
58 start_point=0
59
60
61
62   creadll=$generationdir/creatools_bin/creaBin
63 LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
64   bbtkdll=$generationdir/creatools_bin/bbtkBin
65 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
66   creamaracasdll=$generationdir/creatools_bin/creamaracasBin
67 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
68   creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
69 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
70   creabrukerdll=$generationdir/creatools_bin/creabrukerBin
71 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH 
72   creaimagedll=$generationdir/creatools_bin/creaimageBin
73 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
74   creacontourdll=$generationdir/creatools_bin/creacontoursBin
75 LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
76   crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
77 LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
78   bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
79 LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
80   creatoolsdll=$generationdir/creatools_bin/creatoolsBin
81 LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
82
83