source: flexpart.git/create_tarball.sh @ 6741557

10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bug
Last change on this file since 6741557 was a2e9de4, checked in by Ignacio Pisso <ip@…>, 5 years ago

minor changes to create_tarball.sh

  • Property mode set to 100755
File size: 6.9 KB
Line 
1#!/bin/bash
2
3#define version number
4
5githash=$(git rev-parse --short --verify HEAD)
6
7
8version=10.3beta5_$githash
9
10# define tarball name
11targetdir=../flexpart_distribution/
12tarball_tmp=${targetdir}flexpart_v$version 
13#tarball=${targetdir}flexpart_v$version.tar
14tarball=${tarball_tmp}.tar
15
16# clean old package
17if [ -d $tarball_tmp ]; then
18  echo $tarball_tmp exists: move to $tarball_tmp.bk and exit 
19  mkdir $tarball_tmp.bk
20  mv $tarball_tmp ${tarball_tmp}.bk/
21  mv $tarball ${tarball_tmp}.bk/
22  exit
23fi
24
25echo ---------------------------------------------------------
26echo ')' create basic dir structure
27mkdir $tarball_tmp
28echo ---------------------------------------------------------
29echo ---------------------------------------------------------
30##############################################################
31echo ')' pathnames
32#cp pathnames_distribution $tarball_tmp/pathnames
33cp pathnames $tarball_tmp/pathnames
34echo ---------------------------------------------------------
35##############################################################
36echo ')' src/
37mkdir $tarball_tmp/src
38cp src/*.f90 $tarball_tmp/src
39cp -r src/gributils $tarball_tmp/src
40# echo '3)' copy makefile
41cp src/makefile $tarball_tmp/src
42#cp src/makefile.gfs $tarball_tmp/src
43echo ---------------------------------------------------------
44################################################################
45echo ')' options
46# (for the distribution they work with the defult flex_ecmwf test winds)
47#cp -r options_flex_ecmwf_EA $tarball_tmp/options
48mkdir $tarball_tmp/options
49
50user_input_files="AGECLASSES     COMMAND        IGBP_int1.dat  OUTGRID        OUTGRID_NEST   RECEPTORS      RELEASES       surfdata.t     surfdepo.t"
51
52for i in $user_input_files
53do
54  echo $i
55  cp -r options/$i $tarball_tmp/options
56done
57
58
59mkdir $tarball_tmp/options/SPECIES
60cp options/SPECIES/SPECIES* $tarball_tmp/options/SPECIES/
61cp options/SPECIES/specoverview.f90 $tarball_tmp/options/SPECIES/
62echo ---------------------------------------------------------
63################################################################
64echo ')' AVAILABLE
65#cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE
66cp AVAILABLE $tarball_tmp/AVAILABLE
67
68echo ---------------------------------------------------------
69################################################################
70echo  ')' output / #  mkdir $tarball_tmp/output
71mkdir $tarball_tmp/output
72echo ---------------------------------------------------------
73################################################################
74echo ')' preprocess/
75mkdir $tarball_tmp/preprocess
76#############################
77echo -----------------flex_extract-------------------
78#echo '6)'  mkdir $tarball_tmp/flex_extract [a separate repository]
79#mkdir $tarball_tmp/preprocess
80#mkdir $tarball_tmp/preprocess/flex_ecmwf
81mkdir $tarball_tmp/preprocess/flex_extract
82
83#echo '7)  add ECMWF retrieve routines (change EA wind files for latest source code)'
84#mkdir $tarball_tmp/preprocess/flex_extract
85#mkdir $tarball_tmp/preprocess/flex_extract/work
86#cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_ecmwf/
87#cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/
88## cp -r flex_extract/work/EA* $tarball_tmp/preprocess/flex_extract/work   
89
90echo include flex_extract v7.0.4 b7c1c04a204c91e53759ef590504bf52dfaece64
91flex_extract=../flex_extract_v7.0.4/
92cp $flex_extract/README.md $tarball_tmp/preprocess/flex_extract
93cp -r $flex_extract/docs $tarball_tmp/preprocess/flex_extract
94cp -r $flex_extract/grib_templates $tarball_tmp/preprocess/flex_extract
95cp -r $flex_extract/python $tarball_tmp/preprocess/flex_extract
96cp -r $flex_extract/src $tarball_tmp/preprocess/flex_extract
97
98
99
100
101
102#echo '10)' cp example generating scripts [a separate repository]
103#echo moved below
104
105#mkdir $tarball_tmp/examples
106#cp -r examples/*.sh $tarball_tmp/examples/
107#cp -r examples/Makefile $tarball_tmp/examples/
108echo ---------------------------------------------------------
109################################################################
110echo postprocess/
111
112postprocess=postprocess
113mkdir $tarball_tmp/$postprocess
114echo -----------------flex_read_fortran-------------------
115#echo ')'  directory for reading routines
116#echo '12)'  add fortran reading routines [a separate repository]
117mkdir $tarball_tmp/$postprocess/flex_read_fortran
118cp $postprocess/flex_read_fortran/*.f $tarball_tmp/$postprocess/flex_read_fortran
119cp $postprocess/flex_read_fortran/*.f90 $tarball_tmp/$postprocess/flex_read_fortran
120cp $postprocess/flex_read_fortran/makefile $tarball_tmp/$postprocess/flex_read_fortran
121
122echo -----------------flex_read_matlab-------------------
123
124# add matlab reading routines
125#mkdir $tarball_tmp/postprocess/flex_read_matlab
126#cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab
127
128###############################################################
129
130echo ---------------------------------------------------------
131echo tests/
132
133#echo '13) tests'
134mkdir $tarball_tmp/tests
135
136###############################################################
137echo -----------------flex_read_fortran-------------------
138
139#echo 'b) ./tests/flex_read_fortran/'
140echo fixme
141#mkdir $tarball_tmp/tests/flex_read_fortran
142#cp tests/flex_read_fortran/test_read_default.sh  $tarball_tmp/tests/flex_read_fortran
143
144###############################################################
145echo -----------------examples-------------------
146
147#echo ') ./tests/examples/'
148mkdir $tarball_tmp/tests/examples
149echo ') scripts' 
150cp -r ./tests/examples/*.sh $tarball_tmp/tests/examples/
151echo ') makefile' 
152cp -r ./tests/examples/Makefile $tarball_tmp/tests/examples/
153
154# echo USAGE: ~/repos/flexpart/tests/examples'$' make run
155
156
157###############################################################
158echo -----------------postprocess examples-------------------
159echo --read examples-------------------
160
161#echo '13 c) ./tests/read_examples/'
162mkdir $tarball_tmp/tests/read_examples
163cp tests/read_examples/read_grids.sh $tarball_tmp/tests/read_examples/
164cp tests/read_examples/read_headers.sh $tarball_tmp/tests/read_examples/
165
166# echo USAGE ~/repos/flexpart/tests/read_examples'$'./read_grids.sh
167
168###############################################################
169echo --compare examples-------------------
170#echo tests/compare_examples.sh
171
172#mkdir $tarball_tmp/tests/compare_examples
173#cp tests/compare_examples/compare_grids.sh $tarball_tmp/tests/compare_examples
174cp tests/compare_grids.sh $tarball_tmp/tests/
175# list of examples with units
176cp tests/declare_examples $tarball_tmp/tests/
177
178
179
180# ~/repos/flexpart/tests$./compare_grids.sh
181
182#echo mkdir $tarball_tmp/tests/examples2/
183#echo cp tests/examples2/setup.sh $tarball_tmp/tests/examples2/
184echo --repeat examples-------------------
185#echo FIXME
186
187###############################################################
188echo -----------------ctbto-------------------
189mkdir $tarball_tmp/tests/ctbto
190
191# cp -r tests/NILU/test_1 $tarball_tmp/tests/
192# cp -r tests/default_cases $tarball_tmp/tests/
193
194tar cvf  $tarball  $tarball_tmp 
195
196echo  $tarball complete
197echo exported untarred files in $tarball_tmp 
198exit
199#return
200###############################################################
201
202
203
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG