cleanExistingInstallation
832 Bytes
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
#!/bin/bash
SCRIPT=$(readlink -f "$0")
export UPDATEDIR=$(dirname "$SCRIPT")
. $UPDATEDIR/updateEnv.sh
if [ -z ${DATAPATH} ]
then
echo "[ERROR] check if DATAPATH directory exists"
exit 1
fi
if [ -d "$DATAPATH" ]
then
rm -f $MissionInfo/*.xml
rm -f $InstrumentInfo/*.xml
rm -f $DataSetInfo/*.xml
rm -f $PARAMS_LOCALINFO_DIR/*.xml
rm -f $ParamTemplate/ParamTemplate/*.xml
rm -f $PARAMS_LOCALDB_DIR/*.xml
else
echo "[WARNING] check if AMDA_IHM/generic_data directory exists"
fi
if [ -d "$HelpAuto" ]
then
rm -rf $HelpAuto/img
rm -f $HelpAuto/*
fi
if [ -d "$AMDA_KERNEL_DIR/app-generate-paraminfo" ]
then
rm -rf $AMDA_KERNEL_DIR/app-generate-paraminfo/src/*
rm -f $AMDA_KERNEL_DIR/app-generate-paraminfo/lib/*
else
echo "[WARNING] check if AMDA_Kernel/app-generate-paraminfo directory exists"
fi