Blame view

update_amda/cleanNewMetaLight 689 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
14
15
16
17
18
19
SCRIPT=$(readlink -f "$0")
export UPDATEDIR=$(dirname "$SCRIPT")
. $UPDATEDIR/updateEnv.sh

if [ -z ${NEWMETA} ]
then
        echo "[ERROR] check if NEWMETA env variable is defined"
        exit 1
fi

if [ -z ${AMDA_SPASE_INTERFACE} ]
then
        echo "[ERROR] check if AMDA_SPASE_INTERFACE env variable is defined"
        exit 1
fi

if [ -d "$NEWMETA" ]
4c77b9b1   Elena.Budnik   final update
20
21
then 
	
189c51a1   Elena.Budnik   preprocessInfo
22
	for Dir in $(find -L $NEWMETA/* -type d  -not -path $NEWMETA/ParamInfo* )
4c77b9b1   Elena.Budnik   final update
23
		do
99ae8744   Benjamin Renard   Use config variab...
24
			rm -f ${Dir}/*   
4c77b9b1   Elena.Budnik   final update
25
		done 	
99ae8744   Benjamin Renard   Use config variab...
26
27
28
else
     echo "[ERROR] NEWMETA dir not exists" 
fi
4c77b9b1   Elena.Budnik   final update
29

99ae8744   Benjamin Renard   Use config variab...
30
31
32
if [ -d "$AMDA_SPASE_INTERFACE" ]
then
	rm -f $AMDA_SPASE_INTERFACE/SPASE/*
4c77b9b1   Elena.Budnik   final update
33
else
99ae8744   Benjamin Renard   Use config variab...
34
     echo "[ERROR] AMDA_SPASE_INTERFACE env var is not defined"
4c77b9b1   Elena.Budnik   final update
35
fi