1 | #!/bin/bash |
---|
2 | |
---|
3 | #define version number |
---|
4 | version=10.3beta |
---|
5 | |
---|
6 | # define tarball name |
---|
7 | tarball_tmp=flexpart_v$version |
---|
8 | |
---|
9 | # clean old package |
---|
10 | rm -r $tarball_tmp |
---|
11 | |
---|
12 | # create basic dir structure |
---|
13 | mkdir $tarball_tmp |
---|
14 | mkdir $tarball_tmp/src |
---|
15 | |
---|
16 | # copy fortran source files |
---|
17 | cp src/*.f90 $tarball_tmp/src |
---|
18 | cp -r src/gributils $tarball_tmp/src |
---|
19 | |
---|
20 | # copy makefile |
---|
21 | cp src/makefile $tarball_tmp/src |
---|
22 | #cp src/makefile.gfs $tarball_tmp/src |
---|
23 | |
---|
24 | # copy default options (for the distribution they work with the defult flex_ecmwf test winds) |
---|
25 | # cp -r options $tarball_tmp |
---|
26 | cp -r options_flex_ecmwf_EA $tarball_tmp/options |
---|
27 | |
---|
28 | # copy default pathnames |
---|
29 | cp pathnames_distribution $tarball_tmp/pathnames |
---|
30 | |
---|
31 | |
---|
32 | # add ECMWF retrieve routines |
---|
33 | mkdir $tarball_tmp/preprocess |
---|
34 | #mkdir $tarball_tmp/preprocess/flex_ecmwf |
---|
35 | mkdir $tarball_tmp/preprocess/flex_extract |
---|
36 | #cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_ecmwf/ |
---|
37 | cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/ |
---|
38 | |
---|
39 | # copy default AVAILABLE |
---|
40 | cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE |
---|
41 | |
---|
42 | |
---|
43 | # directory for reading routines |
---|
44 | mkdir $tarball_tmp/postprocess |
---|
45 | |
---|
46 | # add fortran reading routines |
---|
47 | mkdir $tarball_tmp/postprocess/flex_read_fortran |
---|
48 | cp postprocess/flex_read_fortran/*.f $tarball_tmp/postprocess/flex_read_fortran |
---|
49 | cp postprocess/flex_read_fortran/*.f90 $tarball_tmp/postprocess/flex_read_fortran |
---|
50 | cp postprocess/flex_read_fortran/makefile $tarball_tmp/postprocess/flex_read_fortran |
---|
51 | |
---|
52 | # add matlab reading routines |
---|
53 | mkdir $tarball_tmp/postprocess/flex_read_matlab |
---|
54 | cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab |
---|
55 | |
---|
56 | # examples |
---|
57 | cp -r examples $tarball_tmp/ |
---|
58 | |
---|
59 | |
---|
60 | mkdir $tarball_tmp/tests |
---|
61 | |
---|
62 | cp -r tests/NILU/test_1 $tarball_tmp/tests/ |
---|
63 | cp -r tests/flex_gen_cases $tarball_tmp/tests/ |
---|
64 | |
---|
65 | |
---|
66 | #return |
---|
67 | |
---|
68 | #tar -cvf flexpart$version.tar $tarball_tmp/* |
---|
69 | echo now can run: "tar -cvf $tarball_tmp.tar $tarball_tmp/*" |
---|
70 | echo preliminary: scp flexpart_v10.3beta.tar njord:public_html/FLEXPART |
---|