source: trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/save_all @ 216

Last change on this file since 216 was 216, checked in by aslmd, 13 years ago

MESOSCALE: added some cleanup so that no mistake can be made by the user with prepare or copy_model scripts.

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#! /bin/bash
2
3
4### must do something to remove .svn in save files
5### find * */* */*/* -iname .svn
6
7echo Saving LMD_MM_MARS !
8
9mkdir clean
10
11cd SRC
12
13  cd WRFV2
14    save_changes
15    mv sources_Mars.tar.gz ../../clean/
16    mv saved ../../clean/
17  cd ..
18
19  tar czvf ARWpost.tar.gz ARWpost
20  mv ARWpost.tar.gz ../clean/
21
22  #tar czvf INIT_SIMPLE_TEST.tar.gz INIT_SIMPLE_TEST
23  #mv INIT_SIMPLE_TEST.tar.gz ../clean/
24  cp INIT_SIMPLE_TEST.tar.gz ../clean/
25
26  tar czvf PREP_MARS.tar.gz PREP_MARS
27  mv PREP_MARS.tar.gz ../clean/
28
29  tar czvf WPS.tar.gz WPS/switch* WPS/wps_mars
30  mv WPS.tar.gz ../clean/
31
32  #tar czvf g95.tar.gz g95
33  #mv g95.tar.gz ../clean/
34  cp g95.tar.gz ../clean/
35
36  #tar czvf mac.tar.gz mac
37  #mv mac.tar.gz ../clean/
38  cp mac.tar.gz ../clean/
39
40  tar czvf POSTPROC.tar.gz POSTPROC
41  mv POSTPROC.tar.gz ../clean/
42
43
44cd ..
45
46tar czvf SIMU.tar.gz SIMU
47mv SIMU.tar.gz clean/
48
49tar czvf WPS_GEOG.tar.gz WPS_GEOG/res WPS_GEOG/*_GCM
50mv WPS_GEOG.tar.gz clean/
51
52#cd WPS_GEOG
53#cd not_used
54#save_wps_geog
55#mv -f WPS_GEOG.tar.gz ../../clean/
56#cd ../..
57
58cp copy_model clean/
59cp save_all clean/
60cp makemeso clean/
61cp prepare clean/
62cp build_static clean/
63cp prepare_ini clean/
64cp prepare_post clean/
65cp prepare_offline clean/
66
67date > clean/datesave
68cp -f clean/datesave SRC/
69cp -f clean/saved SRC/
70
71#mv clean `date +LMD_MM_MARS_%Y_%m_%d`
72mv clean LMD_MM_MARS
73
74tar czvf `date +LMD_MM_MARS_%Y_%m_%d.tar.gz` LMD_MM_MARS #`date +LMD_MM_MARS_%Y_%m_%d`
75rm -rf LMD_MM_MARS #`date +LMD_MM_MARS_%Y_%m_%d`
76
77if [[ -d TESTCASE ]]
78then
79tar czvf DATA.tar.gz TESTCASE
80mv DATA.tar.gz LMD_MM_MARS_TESTCASE.tar.gz
81fi
82
Note: See TracBrowser for help on using the repository browser.