Commit 0577d36f281155853787f9261a3338e36d50c441
1 parent
329f027c
Exists in
master
and in
111 other branches
new location for Info files
Showing
2 changed files
with
50 additions
and
52 deletions
Show diff stats
update_amda/cleanExistingInstallation
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | 3 | if test $AMDAINSTALLATION/AMDA_IHM/generic_data |
4 | -then | |
4 | +then | |
5 | + rm $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo/*.xml | |
6 | + rm $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo/*.xml | |
7 | + rm $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo/*.xml | |
5 | 8 | rm $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo/*.xml |
6 | 9 | rm $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate/*.xml |
7 | 10 | rm $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase/*.xml |
... | ... | @@ -15,15 +18,6 @@ then |
15 | 18 | rm $AMDAINSTALLATION/AMDA_IHM/help/auto/img/* |
16 | 19 | fi |
17 | 20 | |
18 | -if test $AMDAINSTALLATION/AMDA_Kernel/config | |
19 | -then | |
20 | - rm $AMDAINSTALLATION/AMDA_Kernel/config/DataSetInfo/*.xml | |
21 | - rm $AMDAINSTALLATION/AMDA_Kernel/config/InstrumentInfo/*.xml | |
22 | - rm $AMDAINSTALLATION/AMDA_Kernel/config/MissionInfo/*.xml | |
23 | -else | |
24 | - "check if AMDA_Kernel/config directory exists" | |
25 | -fi | |
26 | - | |
27 | 21 | if test $AMDAINSTALLATION/AMDA_Kernel/app-generate-paraminfo |
28 | 22 | then |
29 | 23 | rm -r $AMDAINSTALLATION/AMDA_Kernel/app-generate-paraminfo/src/* |
... | ... |
update_amda/cp2amda
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | -cp $NEWMETA/datasets/*.xml $AMDAINSTALLATION/AMDA_Kernel/config/DataSetInfo | |
4 | -cp $NEWMETA/instruments/*.xml $AMDAINSTALLATION/AMDA_Kernel/config/InstrumentInfo | |
5 | -cp $NEWMETA/missions/*.xml $AMDAINSTALLATION/AMDA_Kernel/config/MissionInfo | |
3 | +# copy all info files | |
4 | +if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo ]; then | |
5 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo | |
6 | +fi | |
7 | +cp $NEWMETA/datasets/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo | |
6 | 8 | |
9 | +if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo ]; then | |
10 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo | |
11 | +fi | |
12 | +cp $NEWMETA/instruments/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo | |
7 | 13 | |
8 | -if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate ]; then | |
9 | - mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate | |
10 | -fi | |
14 | +if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo ]; then | |
15 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo | |
16 | +fi | |
17 | +cp $NEWMETA/missions/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo | |
11 | 18 | |
12 | -if [ -e $AMDAINTERNALDIR/ParamTemplateList.xml ]; then | |
19 | +# copy all Templates if exist | |
20 | +if [ -e $AMDAINTERNALDIR/ParamTemplateList.xml ]; then | |
21 | + if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate ]; then | |
22 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate | |
23 | + fi | |
24 | + | |
13 | 25 | php ./mvTemplates.php |
14 | 26 | cp $AMDAINTERNALDIR/ParamTemplateList.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate |
15 | - fi | |
16 | - | |
17 | - if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase ]; then | |
18 | - mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase | |
19 | - fi | |
20 | - | |
21 | - # if internal parameters not shown in the tree exist => copy them | |
22 | - if [ -d $AMDAINTERNALDIR/INTERNAL_PARAM_DEF ] | |
23 | - then | |
27 | +fi | |
28 | + | |
29 | +# if internal parameters not shown in the tree exist => copy them to NEWMETA | |
30 | +if [ -d $AMDAINTERNALDIR/INTERNAL_PARAM_DEF ]; then | |
24 | 31 | cp $AMDAINTERNALDIR/INTERNAL_PARAM_DEF/* $NEWMETA/final/ |
25 | - fi | |
26 | - | |
27 | - cp $NEWMETA/final/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase | |
28 | - | |
29 | - | |
30 | -# if special help exitsts => copy it | |
31 | -if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED ] | |
32 | - then | |
32 | +fi | |
33 | + | |
34 | +# copy all parameter desctiptions | |
35 | +if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase ]; then | |
36 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase | |
37 | +fi | |
38 | +cp $NEWMETA/final/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase | |
39 | + | |
40 | +# if special help exitsts => copy it to NEWMETA | |
41 | +if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED ]; then | |
33 | 42 | cp $AMDAINTERNALDIR/HELP_PREDEFINED/* $NEWMETA/help |
34 | - fi | |
35 | - | |
43 | +fi | |
36 | 44 | |
45 | +# copy all help files | |
37 | 46 | if [ ! -d $AMDAINSTALLATION/AMDA_IHM/help/auto ]; then |
38 | 47 | mkdir $AMDAINSTALLATION/AMDA_IHM/help/auto |
39 | 48 | fi |
40 | - | |
41 | -cp $NEWMETA/help/* $AMDAINSTALLATION/AMDA_IHM/help/auto | |
49 | +cp $NEWMETA/help/* $AMDAINSTALLATION/AMDA_IHM/help/auto | |
42 | 50 | |
43 | 51 | if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED/img ]; then |
44 | 52 | if [ ! -d $AMDAINSTALLATION/AMDA_IHM/help/auto/img ]; then |
... | ... | @@ -48,21 +56,17 @@ if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED/img ]; then |
48 | 56 | fi |
49 | 57 | |
50 | 58 | # copy info for parameter arguments |
51 | -if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo ]; then | |
52 | - mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo | |
59 | +if [ -d $NEWMETA/ParamInfo ]; then | |
60 | + if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo ]; then | |
61 | + mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo | |
62 | + fi | |
63 | + cp $NEWMETA/ParamInfo/info*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo | |
53 | 64 | fi |
54 | 65 | |
55 | -if [ -d $NEWMETA/ParamInfo ] | |
56 | - then | |
57 | - cp $NEWMETA/ParamInfo/info*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo | |
58 | - fi | |
59 | - | |
60 | -if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ] | |
61 | - then | |
66 | +# copy LocalParams.xml created by makeTree.php to AMDA installation | |
67 | +if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ]; then | |
62 | 68 | mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData |
63 | - fi | |
64 | - | |
65 | -if [ -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ] && [ -e ./LocalParams.xml ] | |
66 | - then | |
69 | +fi | |
70 | +if [ -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ] && [ -e ./LocalParams.xml ]; then | |
67 | 71 | mv ./LocalParams.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData |
68 | - fi | |
69 | 72 | \ No newline at end of file |
73 | +fi | |
70 | 74 | \ No newline at end of file |
... | ... |