Changeset a816416 in flexpart.git for create_tarball.sh


Ignore:
Timestamp:
Jan 24, 2019, 11:37:30 AM (5 years ago)
Author:
Ignacio Pisso <ip@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug
Children:
77783e3, 348abf6
Parents:
7123c70
Message:

changes to create_tarball.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_tarball.sh

    r6616daf ra816416  
    22
    33#define version number
    4 version=10.3beta 
     4version=10.3beta5
    55
    66# define tarball name
    7 tarball_tmp=flexpart_v$version
     7targetdir=../flexpart_distribution/
     8tarball_tmp=${targetdir}flexpart_v$version
    89
    910# clean old package
    10 rm -r $tarball_tmp
     11if [ -d $tarball_tmp ]; then
     12  echo $tarball_tmp exists: move to $tarball_tmp.bk   
     13  mv $tarball_tmp ${tarball_tmp}.bk
     14  exit
     15fi
    1116
    12 # create basic dir structure
     17echo ---------------------------------------------------------
     18echo ')' create basic dir structure
    1319mkdir $tarball_tmp
     20echo ---------------------------------------------------------
     21echo ---------------------------------------------------------
     22##############################################################
     23echo ')' pathnames
     24#cp pathnames_distribution $tarball_tmp/pathnames
     25cp pathnames $tarball_tmp/pathnames
     26echo ---------------------------------------------------------
     27##############################################################
     28echo ')' src/
    1429mkdir $tarball_tmp/src
    15 
    16 # copy fortran source files
    1730cp src/*.f90 $tarball_tmp/src
    1831cp -r src/gributils $tarball_tmp/src
    19 
    20 # copy makefile
     32# echo '3)' copy makefile
    2133cp src/makefile $tarball_tmp/src
    2234#cp src/makefile.gfs $tarball_tmp/src
     35echo ---------------------------------------------------------
     36################################################################
     37echo ')' options
     38# (for the distribution they work with the defult flex_ecmwf test winds)
     39#cp -r options_flex_ecmwf_EA $tarball_tmp/options
     40mkdir $tarball_tmp/options
    2341
    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
     42user_input_files="AGECLASSES     COMMAND        IGBP_int1.dat  OUTGRID        OUTGRID_NEST   RECEPTORS      RELEASES       surfdata.t     surfdepo.t"
    2743
    28 # copy default pathnames
    29 cp pathnames_distribution $tarball_tmp/pathnames
     44for i in $user_input_files
     45do
     46  echo $i
     47  cp -r options/$i $tarball_tmp/options
     48done
    3049
    3150
    32 # add ECMWF retrieve routines
     51mkdir $tarball_tmp/options/SPECIES
     52cp options/SPECIES/SPECIES* $tarball_tmp/options/SPECIES/
     53cp options/SPECIES/specoverview.f90 $tarball_tmp/options/SPECIES/
     54echo ---------------------------------------------------------
     55################################################################
     56echo ')' AVAILABLE
     57#cp AVAILABLE_flex_ecmwf_EA $tarball_tmp/AVAILABLE
     58cp AVAILABLE $tarball_tmp/AVAILABLE
     59
     60echo ---------------------------------------------------------
     61################################################################
     62echo  ')' output / #  mkdir $tarball_tmp/output
     63mkdir $tarball_tmp/output
     64echo ---------------------------------------------------------
     65################################################################
     66echo ')' preprocess/
    3367mkdir $tarball_tmp/preprocess
     68#############################
     69echo -----------------flex_extract-------------------
     70#echo '6)'  mkdir $tarball_tmp/flex_extract [a separate repository]
     71#mkdir $tarball_tmp/preprocess
    3472#mkdir $tarball_tmp/preprocess/flex_ecmwf
    3573mkdir $tarball_tmp/preprocess/flex_extract
     74
     75#echo '7)  add ECMWF retrieve routines (change EA wind files for latest source code)'
     76#mkdir $tarball_tmp/preprocess/flex_extract
     77#mkdir $tarball_tmp/preprocess/flex_extract/work
    3678#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
     79#cp -r flex_ecmwf_src/* $tarball_tmp/preprocess/flex_extract/
     80## cp -r flex_extract/work/EA* $tarball_tmp/preprocess/flex_extract/work   
    4181
    4282
    43 # directory for reading routines
    44 mkdir $tarball_tmp/postprocess
    4583
    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
     84
     85#echo '10)' cp example generating scripts [a separate repository]
     86#echo moved below
     87
     88#mkdir $tarball_tmp/examples
     89#cp -r examples/*.sh $tarball_tmp/examples/
     90#cp -r examples/Makefile $tarball_tmp/examples/
     91echo ---------------------------------------------------------
     92################################################################
     93echo postprocess/
     94
     95postprocess=postprocess
     96mkdir $tarball_tmp/$postprocess
     97echo -----------------flex_read_fortran-------------------
     98#echo ')'  directory for reading routines
     99#echo '12)'  add fortran reading routines [a separate repository]
     100mkdir $tarball_tmp/$postprocess/flex_read_fortran
     101cp $postprocess/flex_read_fortran/*.f $tarball_tmp/$postprocess/flex_read_fortran
     102cp $postprocess/flex_read_fortran/*.f90 $tarball_tmp/$postprocess/flex_read_fortran
     103cp $postprocess/flex_read_fortran/makefile $tarball_tmp/$postprocess/flex_read_fortran
     104
     105echo -----------------flex_read_matlab-------------------
    51106
    52107# 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
     108#mkdir $tarball_tmp/postprocess/flex_read_matlab
     109#cp postprocess/flex_read_matlab/*.m $tarball_tmp/postprocess/flex_read_matlab
    55110
    56 # examples
    57 cp -r examples $tarball_tmp/
     111###############################################################
     112
     113echo ---------------------------------------------------------
     114echo tests/
     115
     116#echo '13) tests'
     117mkdir $tarball_tmp/tests
     118
     119###############################################################
     120echo -----------------flex_read_fortran-------------------
     121
     122#echo 'b) ./tests/flex_read_fortran/'
     123echo fixme
     124#mkdir $tarball_tmp/tests/flex_read_fortran
     125#cp tests/flex_read_fortran/test_read_default.sh  $tarball_tmp/tests/flex_read_fortran
     126
     127###############################################################
     128echo -----------------examples-------------------
     129
     130#echo ') ./tests/examples/'
     131mkdir $tarball_tmp/tests/examples
     132echo ') scripts'
     133cp -r ./tests/examples/*.sh $tarball_tmp/tests/examples/
     134echo ') makefile'
     135cp -r ./tests/examples/Makefile $tarball_tmp/tests/examples/
     136
     137# echo USAGE: ~/repos/flexpart/tests/examples'$' make run
    58138
    59139
    60 mkdir $tarball_tmp/tests
     140###############################################################
     141echo -----------------postprocess examples-------------------
     142echo --read examples-------------------
    61143
    62 cp -r tests/NILU/test_1 $tarball_tmp/tests/
    63 cp -r tests/flex_gen_cases $tarball_tmp/tests/
     144#echo '13 c) ./tests/read_examples/'
     145mkdir $tarball_tmp/tests/read_examples
     146cp tests/read_examples/read_grids.sh $tarball_tmp/tests/read_examples/
     147cp tests/read_examples/read_headers.sh $tarball_tmp/tests/read_examples/
     148
     149# echo USAGE ~/repos/flexpart/tests/read_examples'$'./read_grids.sh
     150
     151###############################################################
     152echo --compare examples-------------------
     153#echo tests/compare_examples.sh
     154
     155#mkdir $tarball_tmp/tests/compare_examples
     156#cp tests/compare_examples/compare_grids.sh $tarball_tmp/tests/compare_examples
     157cp tests/compare_grids.sh $tarball_tmp/tests/
     158# list of examples with units
     159cp tests/declare_examples $tarball_tmp/tests/
    64160
    65161
     162
     163# ~/repos/flexpart/tests$./compare_grids.sh
     164
     165#echo mkdir $tarball_tmp/tests/examples2/
     166#echo cp tests/examples2/setup.sh $tarball_tmp/tests/examples2/
     167echo --repeat examples-------------------
     168#echo FIXME
     169
     170###############################################################
     171echo -----------------ctbto-------------------
     172mkdir $tarball_tmp/tests/ctbto
     173
     174# cp -r tests/NILU/test_1 $tarball_tmp/tests/
     175# cp -r tests/default_cases $tarball_tmp/tests/
     176
     177
     178exit
    66179#return
     180###############################################################
    67181
    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
     182
     183
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG