Subversion Repositories pvinversion.ecmwf

Rev

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

Rev 3 Rev 4
Line 3... Line 3...
3
module load netcdf/4.2.1-pgf90
3
module load netcdf/4.2.1-pgf90
4
module list 
4
module list 
5
 
5
 
6
# ---- set some directories and other stuff ---
6
# ---- set some directories and other stuff ---
7
 
7
 
8
set bdir = ${PWD}
-
 
9
set mode = $1
8
set mode = $1
-
 
9
set svnpath=https://svn.iac.ethz.ch/pub/pvinversion.ecmwf/
-
 
10
set bdir = ${PWD}
10
 
11
 
11
# ----- Set libraries and includes ------------
12
# ----- Set libraries and includes ------------
12
 
13
 
13
set libs   = "-L ${bdir}/lib"
14
set libs   = "-L ${bdir}/lib"
14
set libs   = "${libs} -lcdfio" 
15
set libs   = "${libs} -lcdfio" 
Line 17... Line 18...
17
set libs   = "${libs} -lgm2em"
18
set libs   = "${libs} -lgm2em"
18
 
19
 
19
set ncdf_incs  = `nc-config --fflags`
20
set ncdf_incs  = `nc-config --fflags`
20
set ncdf_libs  = `nc-config --flibs`
21
set ncdf_libs  = `nc-config --flibs`
21
 
22
 
-
 
23
# ----- Create a new SVN tag ------------------
-
 
24
tag:
-
 
25
 
-
 
26
if ( "${mode}" == "tag" ) then
-
 
27
   svn info
-
 
28
   if ( "${#argv}" != 2 ) then
-
 
29
     echo "Usage: install.csh tag id <id=tag number>"
-
 
30
   else
-
 
31
     set tagnr = $2
-
 
32
   endif
-
 
33
   svn copy ${svnpath}/trunk ${svnpath}/tags/${tagnr} -m "Release ${tagnr}"
-
 
34
   exit 0
-
 
35
endif
-
 
36
 
-
 
37
 
-
 
38
if ( "${mode}" != "clean" ) goto compile
22
# ----- Make clean ----------------------------
39
# ----- Make clean ----------------------------
23
clean:
40
clean:
24
 
41
 
25
if ( "${mode}" != "clean" ) goto compile
42
if ( "${mode}" != "clean" ) goto compile
26
 
43