Blame view

update_amda/cleanExistingInstallation 832 Bytes
4c77b9b1   Elena.Budnik   final update
1
2
#!/bin/bash

99ae8744   Benjamin Renard   Use config variab...
3
4
5
6
7
8
9
10
11
12
13
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" ]
0577d36f   Elena.Budnik   new location for ...
14
then
99ae8744   Benjamin Renard   Use config variab...
15
16
17
18
19
20
	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 
4c77b9b1   Elena.Budnik   final update
21
else
99ae8744   Benjamin Renard   Use config variab...
22
	echo "[WARNING] check if AMDA_IHM/generic_data directory exists"    
4c77b9b1   Elena.Budnik   final update
23
24
fi

99ae8744   Benjamin Renard   Use config variab...
25
if [ -d "$HelpAuto" ]
4c77b9b1   Elena.Budnik   final update
26
then
99ae8744   Benjamin Renard   Use config variab...
27
28
        rm -rf $HelpAuto/img
	rm -f $HelpAuto/*
4c77b9b1   Elena.Budnik   final update
29
30
fi

99ae8744   Benjamin Renard   Use config variab...
31
if [ -d "$AMDA_KERNEL_DIR/app-generate-paraminfo" ]
4c77b9b1   Elena.Budnik   final update
32
then 
99ae8744   Benjamin Renard   Use config variab...
33
34
	rm -rf $AMDA_KERNEL_DIR/app-generate-paraminfo/src/*
	rm -f $AMDA_KERNEL_DIR/app-generate-paraminfo/lib/*	
4c77b9b1   Elena.Budnik   final update
35
else
99ae8744   Benjamin Renard   Use config variab...
36
37
	echo "[WARNING] check if AMDA_Kernel/app-generate-paraminfo directory exists"      
fi