cp2amda
2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# copy all info files
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo
fi
cp $NEWMETA/datasets/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/DataSetInfo
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo
fi
cp $NEWMETA/instruments/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/InstrumentInfo
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo
fi
cp $NEWMETA/missions/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/MissionInfo
# copy all Templates if exist
if [ -e $AMDAINTERNALDIR/ParamTemplateList.xml ]; then
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate
fi
php ./mvTemplates.php
cp $AMDAINTERNALDIR/ParamTemplateList.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate
fi
# copy all parameter desctiptions
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase
fi
cp $NEWMETA/final/*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase
# if internal parameters not shown in the tree exist => copy them to AMDA Installation without processing
if [ -d $AMDAINTERNALDIR/INTERNAL_PARAM_DEF ]; then
cp $AMDAINTERNALDIR/INTERNAL_PARAM_DEF/* $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase
fi
# if special help exitsts => copy it to NEWMETA
if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED ]; then
cp $AMDAINTERNALDIR/HELP_PREDEFINED/* $NEWMETA/help
fi
# copy all help files
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/help/auto ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/help/auto
fi
cp $NEWMETA/help/* $AMDAINSTALLATION/AMDA_IHM/help/auto
if [ -d $AMDAINTERNALDIR/HELP_PREDEFINED/img ]; then
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/help/auto/img ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/help/auto/img
fi
cp $AMDAINTERNALDIR/HELP_PREDEFINED/img/* $AMDAINSTALLATION/AMDA_IHM/help/auto/img
fi
# copy info for parameter arguments
if [ -d $NEWMETA/ParamInfo ]; then
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo
fi
cp $NEWMETA/ParamInfo/info*.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo
fi
# copy LocalParams.xml created by makeTree.php to AMDA installation
if [ ! -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ]; then
mkdir $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData
fi
if [ -d $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData ] && [ -e ./LocalParams.xml ]; then
mv ./LocalParams.xml $AMDAINSTALLATION/AMDA_IHM/generic_data/LocalData
fi