Subversion Repositories lagranto.um

Rev

Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 15
Line 15... Line 15...
15
 
15
 
16
# Set path to SVN repository
16
# Set path to SVN repository
17
set svnpath=https://svn.iac.ethz.ch/pub/lagranto.um/
17
set svnpath=https://svn.iac.ethz.ch/pub/lagranto.um/
18
 
18
 
19
# Set paths for development and for synchronisation (operational)
19
# Set paths for development and for synchronisation (operational)
20
set path_devel = '/home/sprenger/project/lagranto.um/'
20
set path_devel = "${DYN_TOOLS}/lagranto.um/"
-
 
21
set path_sync  = "${DYN_TOOLS}/lagranto/"
-
 
22
 
-
 
23
# Init Fortran compiler and set netCDF acccordingly
-
 
24
setenv FORTRAN pgf90 
-
 
25
 
-
 
26
# Init netCDF library depending on the Fortran compiler
-
 
27
if ( "${FORTRAN}" == "pgf90" ) then
-
 
28
  module load netcdf/4.2.1-pgf90
21
 
29
 
22
# Init Fortran compiler and set netCDF acccordingly
30
# Init Fortran compiler and set netCDF acccordingly
23
setenv FORTRAN pgf90
31
setenv FORTRAN pgf90
24
 
32
 
25
# Init netCDF library depending on the Fortran compiler
33
# Init netCDF library depending on the Fortran compiler
Line 413... Line 421...
413
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool} 
421
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool} 
414
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.um
422
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.um
415
 
423
 
416
end
424
end
417
 
425
 
-
 
426
# Set extra name for <select> to avoid conflict in BASH
-
 
427
ln -svf ${LAGRANTO}/select/select.sh        seltra
-
 
428
ln -svf ${LAGRANTO}/select/select.sh        seltra.sh
-
 
429
ln -svf ${LAGRANTO}/select/select.sh        seltra.um
-
 
430
 
-
 
431
 
-
 
432
endif
-
 
433
 
-
 
434
# -----------------------------------------------------------------------------
-
 
435
# Synchronise ( development -> operational ) 
-
 
436
# -----------------------------------------------------------------------------
-
 
437
 
-
 
438
if ( ("${mode}" == "all" ) | ("${mode}" == "sync" )  ) then
-
 
439
 
-
 
440
echo
-
 
441
echo "-----------------------------------------------------------------"
-
 
442
echo "Sync ( lagranto.um -> lagranto )"
-
 
443
echo "-----------------------------------------------------------------"
-
 
444
echo
-
 
445
 
-
 
446
cd ${path_sync}/bin/
-
 
447
 
-
 
448
ln -svf ${path_devel}/bin/lagrantohelp.sh        lagrantohelp.um
-
 
449
 
-
 
450
ln -svf ${path_devel}/caltra/caltra.sh           caltra.um
-
 
451
ln -svf ${path_devel}/select/select.sh           select.um
-
 
452
ln -svf ${path_devel}/trace/trace.sh             trace.um
-
 
453
ln -svf ${path_devel}/lidar/seltra.sh            seltra.um
-
 
454
 
-
 
455
foreach tool ( $tools )
-
 
456
 
-
 
457
ln -svf ${path_devel}/goodies/${tool}.sh      ${tool}.um
-
 
458
 
-
 
459
end
-
 
460
 
-
 
461
# Set all permissions
-
 
462
chmod -R og+rx ${path_sync}/bin/
-
 
463
 
418
endif
464
endif
419
 
465
 
-
 
466
 
420
# -----------------------------------------------------------------------------
467
# -----------------------------------------------------------------------------
421
# Final tasks
468
# Final tasks
422
# -----------------------------------------------------------------------------
469
# -----------------------------------------------------------------------------
423
 
470
 
424
echo
471
echo