[472] | 1 | case $CONFIG in |
---|
| 2 | '') |
---|
| 3 | if test -f config.sh; then TOP=.; |
---|
| 4 | elif test -f ../config.sh; then TOP=..; |
---|
| 5 | elif test -f ../../config.sh; then TOP=../..; |
---|
| 6 | elif test -f ../../../config.sh; then TOP=../../..; |
---|
| 7 | elif test -f ../../../../config.sh; then TOP=../../../..; |
---|
| 8 | else |
---|
| 9 | echo "Can't find config.sh."; exit 1 |
---|
| 10 | fi |
---|
| 11 | . $TOP/config.sh |
---|
| 12 | ;; |
---|
| 13 | esac |
---|
| 14 | : This forces SH files to create target in same directory as SH file. |
---|
| 15 | : This is so that make depend always knows where to find SH derivatives. |
---|
| 16 | case "$0" in |
---|
| 17 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
---|
| 18 | esac |
---|
| 19 | #echo "Extracting move.sh (with variable substitutions)" |
---|
| 20 | : This section of the file will have variable substitutions done on it. |
---|
| 21 | : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!. |
---|
| 22 | : Protect any dollar signs and backticks that you do not want interpreted |
---|
| 23 | : by putting a backslash in front. You may delete these comments. |
---|
| 24 | $spitshell >move.sh <<!GROK!THIS! |
---|
| 25 | ###################################### |
---|
| 26 | # |
---|
| 27 | # g4system.U |
---|
| 28 | # |
---|
| 29 | #+ |
---|
| 30 | G4SYSTEM="$g4system" |
---|
| 31 | export G4SYSTEM |
---|
| 32 | echo "On this machine the G4SYSTEM=\$G4SYSTEM" |
---|
| 33 | |
---|
| 34 | # |
---|
| 35 | # g4dirs.U |
---|
| 36 | # |
---|
| 37 | #+ |
---|
| 38 | G4INSTALL="$g4install" |
---|
| 39 | export G4INSTALL |
---|
| 40 | echo "On this machine the G4INSTALL=\$G4INSTALL" |
---|
| 41 | |
---|
| 42 | #+ |
---|
| 43 | if [ X$g4include != X -a X$g4include != Xn ] ; then |
---|
| 44 | G4INCLUDE="$g4include" |
---|
| 45 | export G4INCLUDE |
---|
| 46 | echo "On this machine the G4INCLUDE=\$G4INCLUDE" |
---|
| 47 | fi |
---|
| 48 | |
---|
| 49 | #+ |
---|
| 50 | if [ X$g4tmp != X ] ; then |
---|
| 51 | G4TMP="$g4tmp" |
---|
| 52 | export G4TMP |
---|
| 53 | echo "On this machine the G4TMP=\$G4TMP" |
---|
| 54 | fi |
---|
| 55 | |
---|
| 56 | #+ |
---|
| 57 | if [ X$g4lib != X ] ; then |
---|
| 58 | G4LIB="$g4lib" |
---|
| 59 | export G4LIB |
---|
| 60 | echo "On this machine the G4LIB=\$G4LIB" |
---|
| 61 | fi |
---|
| 62 | |
---|
| 63 | #+ |
---|
| 64 | if [ X$g4lib != X ] ; then |
---|
| 65 | G4BIN="$g4lib/../bin" |
---|
| 66 | export G4BIN |
---|
| 67 | fi |
---|
| 68 | |
---|
| 69 | #+ |
---|
| 70 | if [ X$g4levelgammadata != X ] ; then |
---|
| 71 | G4LEVELGAMMADATA="$g4levelgammadata" |
---|
| 72 | export G4LEVELGAMMADATA |
---|
| 73 | echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA" |
---|
| 74 | fi |
---|
| 75 | |
---|
| 76 | #+ |
---|
| 77 | if [ X$g4radioactivedata != X ] ; then |
---|
| 78 | G4RADIOACTIVEDATA="$g4radioactivedata" |
---|
| 79 | export G4RADIOACTIVEDATA |
---|
| 80 | echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA" |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | #+ |
---|
| 84 | if [ X$g4ledata != X ] ; then |
---|
| 85 | G4LEDATA="$g4ledata" |
---|
| 86 | export G4LEDATA |
---|
| 87 | echo "On this machine the G4LEDATA=\$G4LEDATA" |
---|
| 88 | fi |
---|
| 89 | |
---|
| 90 | #+ |
---|
| 91 | if [ X$g4neutronhpcrosssections != X ] ; then |
---|
[593] | 92 | G4NEUTRONHPDATA="$g4neutronhpcrosssections" |
---|
| 93 | export G4NEUTRONHPDATA |
---|
| 94 | echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA" |
---|
[472] | 95 | fi |
---|
| 96 | |
---|
| 97 | #+ |
---|
[606] | 98 | if [ X$g4abladata != X ] ; then |
---|
| 99 | G4ABLADATA="$g4abladata" |
---|
| 100 | export G4ABLADATA |
---|
| 101 | echo "On this machine the G4ABLADATA=\$G4ABLADATA" |
---|
| 102 | fi |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | #+ |
---|
[483] | 107 | #if [ X$g4elasticdata != X ] ; then |
---|
| 108 | #G4ELASTICDATA="$g4elasticdata" |
---|
| 109 | #export G4ELASTICDATA |
---|
| 110 | #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA" |
---|
| 111 | #fi |
---|
[472] | 112 | |
---|
| 113 | # |
---|
| 114 | # g4clhep.U |
---|
| 115 | # |
---|
| 116 | if [ X$g4clhep_base_dir != X/usr -o X$g4clhep_base_dir != X/usr/local ] ; then |
---|
| 117 | CLHEP_BASE_DIR="$g4clhep_base_dir" |
---|
| 118 | export CLHEP_BASE_DIR |
---|
| 119 | echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR" |
---|
| 120 | fi |
---|
| 121 | |
---|
| 122 | #+ |
---|
| 123 | if [ X$g4clhep_include_dir != X ] ; then |
---|
| 124 | CLHEP_INCLUDE_DIR="$g4clhep_include_dir" |
---|
| 125 | export CLHEP_INCLUDE_DIR |
---|
| 126 | echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR" |
---|
| 127 | fi |
---|
| 128 | |
---|
| 129 | #+ |
---|
| 130 | if [ X$g4clhep_lib_dir != X ] ; then |
---|
| 131 | CLHEP_LIB_DIR="$g4clhep_lib_dir" |
---|
| 132 | export CLHEP_LIB_DIR |
---|
| 133 | echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR" |
---|
| 134 | fi |
---|
| 135 | |
---|
| 136 | #+ |
---|
| 137 | if [ X$g4clhep_lib != X ] ; then |
---|
| 138 | CLHEP_LIB="$g4clhep_lib" |
---|
| 139 | export CLHEP_LIB |
---|
| 140 | echo "On this machine the CLHEP_LIB=\$CLHEP_LIB" |
---|
| 141 | fi |
---|
| 142 | |
---|
| 143 | #+ |
---|
| 144 | # |
---|
| 145 | # g4debug |
---|
| 146 | # |
---|
[483] | 147 | if [ X$g4debug = Xy ] ; then |
---|
| 148 | G4DEBUG=1 |
---|
[472] | 149 | export G4DEBUG |
---|
| 150 | echo "On this machine the G4DEBUG=\$G4DEBUG" |
---|
| 151 | fi |
---|
| 152 | |
---|
| 153 | # |
---|
| 154 | # g4analysis |
---|
| 155 | # |
---|
| 156 | #+ |
---|
| 157 | if [ X$g4wanalysis_use = Xy ] ; then |
---|
| 158 | G4ANALYSIS_USE=1 |
---|
| 159 | export G4ANALYSIS_USE |
---|
| 160 | echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE" |
---|
| 161 | fi |
---|
| 162 | |
---|
| 163 | # |
---|
| 164 | # g4ui |
---|
| 165 | # |
---|
| 166 | #+ |
---|
| 167 | if [ X$g4ui_build_xaw_session = Xy ] ; then |
---|
| 168 | G4UI_BUILD_XAW_SESSION=1 |
---|
| 169 | export G4UI_BUILD_XAW_SESSION |
---|
| 170 | echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION" |
---|
| 171 | fi |
---|
| 172 | |
---|
| 173 | #+ |
---|
| 174 | if [ X$g4ui_use_xaw = Xy ] ; then |
---|
| 175 | G4UI_USE_XAW=1 |
---|
| 176 | export G4UI_USE_XAW |
---|
| 177 | echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW" |
---|
| 178 | fi |
---|
| 179 | |
---|
| 180 | #+ |
---|
| 181 | if [ X$g4ui_build_xm_session = Xy ] ; then |
---|
| 182 | G4UI_BUILD_XM_SESSION=1 |
---|
| 183 | export G4UI_BUILD_XM_SESSION |
---|
| 184 | echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION" |
---|
| 185 | fi |
---|
| 186 | |
---|
| 187 | #+ |
---|
| 188 | if [ X$g4ui_use_xm = Xy ] ; then |
---|
| 189 | G4UI_USE_XM=1 |
---|
| 190 | export G4UI_USE_XM |
---|
| 191 | echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM" |
---|
| 192 | fi |
---|
| 193 | |
---|
| 194 | #+ |
---|
| 195 | if [ X$g4ui_build_win32_session = Xy ] ; then |
---|
| 196 | G4UI_BUILD_WIN32_SESSION=1 |
---|
| 197 | export G4UI_BUILD_WIN32_SESSION |
---|
| 198 | echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION" |
---|
| 199 | fi |
---|
| 200 | |
---|
| 201 | #+ |
---|
| 202 | if [ X$g4ui_use_win32 = Xy ] ; then |
---|
| 203 | G4UI_USE_WIN32=1 |
---|
| 204 | export G4UI_USE_WIN32 |
---|
| 205 | echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32" |
---|
| 206 | fi |
---|
| 207 | |
---|
[689] | 208 | |
---|
| 209 | #+ |
---|
| 210 | if [ X$g4ui_build_qt_session = Xy ] ; then |
---|
| 211 | G4UI_BUILD_QT_SESSION=1 |
---|
| 212 | export G4UI_BUILD_QT_SESSION |
---|
| 213 | echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION" |
---|
| 214 | fi |
---|
| 215 | |
---|
| 216 | #+ |
---|
| 217 | if [ X$g4ui_use_qt = Xy ] ; then |
---|
| 218 | G4UI_USE_QT=1 |
---|
| 219 | export G4UI_USE_QT |
---|
| 220 | echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT" |
---|
| 221 | fi |
---|
| 222 | |
---|
| 223 | |
---|
| 224 | |
---|
[472] | 225 | # |
---|
| 226 | # g4vis |
---|
| 227 | # |
---|
| 228 | #+ |
---|
| 229 | if [ X$g4vis_build_dawn_driver = Xy ] ; then |
---|
| 230 | G4VIS_BUILD_DAWN_DRIVER=1 |
---|
| 231 | export G4VIS_BUILD_DAWN_DRIVER |
---|
| 232 | echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER" |
---|
| 233 | fi |
---|
| 234 | |
---|
| 235 | #+ |
---|
| 236 | if [ X$g4vis_build_openglx_driver = Xy ] ; then |
---|
| 237 | G4VIS_BUILD_OPENGLX_DRIVER=1 |
---|
| 238 | export G4VIS_BUILD_OPENGLX_DRIVER |
---|
| 239 | echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER" |
---|
| 240 | fi |
---|
| 241 | |
---|
| 242 | #+ |
---|
| 243 | if [ X$g4vis_build_openglxm_driver = Xy ] ; then |
---|
| 244 | G4VIS_BUILD_OPENGLXM_DRIVER=1 |
---|
| 245 | export G4VIS_BUILD_OPENGLXM_DRIVER |
---|
| 246 | echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER" |
---|
| 247 | fi |
---|
| 248 | |
---|
| 249 | #+ |
---|
| 250 | if [ X$g4vis_build_openglwin32_driver = Xy ] ; then |
---|
| 251 | G4VIS_BUILD_OPENGLWIN32_DRIVER=1 |
---|
| 252 | export G4VIS_BUILD_OPENGLWIN32_DRIVER |
---|
| 253 | echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER" |
---|
| 254 | fi |
---|
| 255 | |
---|
| 256 | #+ |
---|
| 257 | if [ X$g4vis_build_oix_driver = Xy ] ; then |
---|
| 258 | G4VIS_BUILD_OIX_DRIVER=1 |
---|
| 259 | export G4VIS_BUILD_OIX_DRIVER |
---|
| 260 | echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER" |
---|
| 261 | fi |
---|
| 262 | |
---|
| 263 | #+ |
---|
| 264 | if [ X$g4vis_build_oiwin32_driver = Xy ] ; then |
---|
| 265 | G4VIS_BUILD_OIWIN32_DRIVER=1 |
---|
| 266 | export G4VIS_BUILD_OIWIN32_DRIVER |
---|
| 267 | echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER" |
---|
| 268 | fi |
---|
| 269 | |
---|
| 270 | #+ |
---|
| 271 | if [ X$g4vis_build_vrml_driver = Xy ] ; then |
---|
| 272 | G4VIS_BUILD_VRML_DRIVER=1 |
---|
| 273 | export G4VIS_BUILD_VRML_DRIVER |
---|
| 274 | echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER" |
---|
| 275 | fi |
---|
| 276 | |
---|
| 277 | #+ |
---|
[689] | 278 | if [ X$g4vis_build_openglqt_driver = Xy ] ; then |
---|
| 279 | G4VIS_BUILD_OPENGLQT_DRIVER=1 |
---|
| 280 | export G4VIS_BUILD_OPENGLQT_DRIVER |
---|
| 281 | echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER" |
---|
| 282 | fi |
---|
| 283 | |
---|
| 284 | |
---|
| 285 | |
---|
| 286 | #+ |
---|
[472] | 287 | if [ X$g4vis_use_dawn = Xy ] ; then |
---|
| 288 | G4VIS_USE_DAWN=1 |
---|
| 289 | export G4VIS_USE_DAWN |
---|
| 290 | echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN" |
---|
| 291 | fi |
---|
| 292 | |
---|
| 293 | #+ |
---|
| 294 | if [ X$g4vis_use_openglx = Xy ] ; then |
---|
| 295 | G4VIS_USE_OPENGLX=1 |
---|
| 296 | export G4VIS_USE_OPENGLX |
---|
| 297 | echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX" |
---|
| 298 | fi |
---|
| 299 | |
---|
| 300 | #+ |
---|
| 301 | if [ X$g4vis_use_openglxm = Xy ] ; then |
---|
| 302 | G4VIS_USE_OPENGLXM=1 |
---|
| 303 | export G4VIS_USE_OPENGLXM |
---|
| 304 | echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM" |
---|
| 305 | fi |
---|
| 306 | |
---|
| 307 | #+ |
---|
| 308 | if [ X$g4vis_use_openglwin32 = Xy ] ; then |
---|
| 309 | G4VIS_USE_OPENGLWIN32=1 |
---|
| 310 | export G4VIS_USE_OPENGLWIN32 |
---|
| 311 | echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32" |
---|
| 312 | fi |
---|
| 313 | |
---|
| 314 | #+ |
---|
| 315 | if [ X$g4vis_use_oix = Xy ] ; then |
---|
| 316 | G4VIS_USE_OIX=1 |
---|
| 317 | export G4VIS_USE_OIX |
---|
| 318 | echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX" |
---|
| 319 | fi |
---|
| 320 | |
---|
| 321 | #+ |
---|
| 322 | if [ X$g4vis_use_oiwin32 = Xy ] ; then |
---|
| 323 | G4VIS_USE_OIWIN32=1 |
---|
| 324 | export G4VIS_USE_OIWIN32 |
---|
| 325 | echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32" |
---|
| 326 | fi |
---|
| 327 | |
---|
| 328 | #+ |
---|
| 329 | if [ X$g4vis_use_vrml = Xy ] ; then |
---|
| 330 | G4VIS_USE_VRML=1 |
---|
| 331 | export G4VIS_USE_VRML |
---|
| 332 | echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML" |
---|
| 333 | fi |
---|
| 334 | |
---|
| 335 | #+ |
---|
[689] | 336 | if [ X$g4vis_use_openglqt = Xy ] ; then |
---|
| 337 | G4VIS_USE_OPENGLQT=1 |
---|
| 338 | export G4VIS_USE_OPENGLQT |
---|
| 339 | echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT" |
---|
| 340 | fi |
---|
| 341 | |
---|
| 342 | |
---|
| 343 | |
---|
| 344 | #+ |
---|
[472] | 345 | if [ X$g4vis_oglhome != X ] ; then |
---|
| 346 | OGLHOME="$g4vis_oglhome" |
---|
| 347 | export OGLHOME |
---|
| 348 | echo "On this machine the OGLHOME=\$OGLHOME" |
---|
| 349 | fi |
---|
| 350 | |
---|
[689] | 351 | #+ |
---|
| 352 | if [ X$g4_qthome != X ] ; then |
---|
| 353 | QTHOME=$g4_qthome |
---|
| 354 | export QTHOME |
---|
| 355 | echo "On this machine the QTHOME=\$QTHOME" |
---|
| 356 | fi |
---|
[606] | 357 | |
---|
[689] | 358 | |
---|
| 359 | |
---|
[472] | 360 | # |
---|
[606] | 361 | # Use GDML module |
---|
| 362 | # |
---|
| 363 | #+ |
---|
| 364 | if [ X$g4lib_build_gdml = Xy ] ; then |
---|
| 365 | G4LIB_BUILD_GDML=1 |
---|
| 366 | export G4LIB_BUILD_GDML |
---|
| 367 | echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML" |
---|
| 368 | fi |
---|
| 369 | |
---|
| 370 | if [ X$g4lib_build_gdml = Xy ] ; then |
---|
| 371 | XERCESCROOT=$g4gdml_xercesc_root |
---|
| 372 | export XERCESCROOT |
---|
| 373 | echo "On this machine the XERCESCROOT=\$XERCESCROOT" |
---|
| 374 | fi |
---|
| 375 | |
---|
| 376 | |
---|
| 377 | |
---|
| 378 | # |
---|
[472] | 379 | # Use G3TOG4 module |
---|
| 380 | # |
---|
| 381 | #+ |
---|
| 382 | if [ X$g4wlib_build_g3tog4 = Xy ] ; then |
---|
| 383 | G4LIB_BUILD_G3TOG4=1 |
---|
| 384 | export G4LIB_BUILD_G3TOG4 |
---|
| 385 | echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4" |
---|
| 386 | fi |
---|
| 387 | |
---|
| 388 | if [ X$g4w_use_g3tog4 = Xy ] ; then |
---|
| 389 | G4LIB_USE_G3TOG4=1 |
---|
| 390 | export G4LIB_USE_G3TOG4 |
---|
| 391 | echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4" |
---|
| 392 | fi |
---|
| 393 | |
---|
| 394 | # |
---|
| 395 | # Use ZLIB module |
---|
| 396 | # |
---|
| 397 | #+ |
---|
| 398 | if [ X$g4wlib_build_zlib = Xy ] ; then |
---|
| 399 | G4LIB_BUILD_ZLIB=1 |
---|
| 400 | export G4LIB_BUILD_ZLIB |
---|
| 401 | echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB" |
---|
| 402 | fi |
---|
| 403 | |
---|
| 404 | if [ X$g4w_use_zlib = Xy ] ; then |
---|
| 405 | G4LIB_USE_ZLIB=1 |
---|
| 406 | export G4LIB_USE_ZLIB |
---|
| 407 | echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB" |
---|
| 408 | fi |
---|
| 409 | |
---|
| 410 | |
---|
| 411 | #+ |
---|
| 412 | # |
---|
| 413 | # g4shared |
---|
| 414 | # |
---|
| 415 | if [ X$g4lib_build_shared = Xy ] ; then |
---|
| 416 | G4LIB_BUILD_SHARED=1 |
---|
| 417 | export G4LIB_BUILD_SHARED |
---|
| 418 | echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED" |
---|
| 419 | fi |
---|
| 420 | |
---|
| 421 | if [ X$g4lib_build_static = Xy ] ; then |
---|
| 422 | G4LIB_BUILD_STATIC=1 |
---|
| 423 | export G4LIB_BUILD_STATIC |
---|
| 424 | echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC" |
---|
| 425 | fi |
---|
| 426 | |
---|
| 427 | #+ |
---|
| 428 | # |
---|
| 429 | # g4granular |
---|
| 430 | # |
---|
| 431 | if [ X$g4lib_use_granular = Xy ] ; then |
---|
| 432 | G4LIB_USE_GRANULAR=1 |
---|
| 433 | export G4LIB_USE_GRANULAR |
---|
| 434 | echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR" |
---|
| 435 | fi |
---|
| 436 | |
---|
| 437 | ##################################################################### |
---|
| 438 | |
---|
| 439 | ##################################################################### |
---|
| 440 | |
---|
| 441 | echo "" |
---|
| 442 | echo "Starting installation..." |
---|
| 443 | echo "" |
---|
| 444 | |
---|
| 445 | cd $g4install |
---|
| 446 | #echo `pwd` |
---|
| 447 | |
---|
| 448 | |
---|
| 449 | # Remove 'verbosity' in 'tar' command |
---|
| 450 | # If not INCLUDE then install full tree in 'src' directory! |
---|
| 451 | # |
---|
| 452 | if [ X$g4includes_flag = Xn ] ; then |
---|
| 453 | if [ X$g4install != X$g4final_install ] ; then |
---|
| 454 | echo "" |
---|
| 455 | echo "Installing sources and headers..." |
---|
| 456 | echo "" |
---|
| 457 | mkdir -p $g4final_install/src/geant4/ |
---|
[593] | 458 | tar cf - Configure config/ source/ environments/ examples/ include/ |(cd $g4final_install/src/geant4/; tar xf -) |
---|
[472] | 459 | fi |
---|
| 460 | fi |
---|
| 461 | |
---|
| 462 | ######################################## |
---|
| 463 | # There is no env! |
---|
| 464 | if [ X$g4includes_flag = Xy ] ; then |
---|
| 465 | |
---|
| 466 | if [ X$g4install != X$g4final_install ] ; then |
---|
| 467 | echo "" |
---|
| 468 | echo "Installing sources..." |
---|
| 469 | echo "" |
---|
| 470 | |
---|
| 471 | mkdir -p $g4final_install/src/geant4/ |
---|
[593] | 472 | tar cf - Configure config/ source/ environments/ examples/ |(cd $g4final_install/src/geant4/; tar xf -) |
---|
[472] | 473 | fi |
---|
| 474 | |
---|
| 475 | echo "" |
---|
| 476 | echo "Installing headers..." |
---|
| 477 | echo "" |
---|
| 478 | cd $g4install/source |
---|
| 479 | $g4make includes dependencies="" |
---|
| 480 | fi |
---|
| 481 | |
---|
| 482 | # Move libraries |
---|
| 483 | if [ X$g4install != X$g4final_install ] ; then |
---|
| 484 | echo "" |
---|
| 485 | echo "Installing libraries..." |
---|
| 486 | echo "" |
---|
| 487 | mkdir -p $g4final_install/lib/geant4 |
---|
| 488 | cd $g4install/lib |
---|
| 489 | tar cf - $g4system |(cd $g4final_install/lib/geant4; tar xf -) |
---|
| 490 | fi |
---|
| 491 | |
---|
| 492 | # For the reason of strange behaivior for DOTted directory... |
---|
| 493 | mkdir -p $g4final_install/src/geant4/.config |
---|
| 494 | cd $g4install/.config |
---|
| 495 | tar cf - . |(cd $g4final_install/src/geant4/.config; tar xf -) |
---|
| 496 | |
---|
| 497 | |
---|
| 498 | !GROK!THIS! |
---|
| 499 | |
---|
| 500 | : In the following dollars and backticks do not need the extra backslash. |
---|
| 501 | $spitshell >>move.sh <<'!NO!SUBS!' |
---|
| 502 | !NO!SUBS! |
---|
| 503 | chmod 755 move.sh |
---|
| 504 | $eunicefix move.sh |
---|
| 505 | |
---|