cleanExistingInstallation
1.03 KB
#!/bin/bash
if test $AMDAINSTALLATION/AMDA_IHM/generic_data
then
rm $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamInfo/*.xml
rm $AMDAINSTALLATION/AMDA_IHM/generic_data/ParamTemplate/*.xml
rm $AMDAINSTALLATION/AMDA_IHM/generic_data/newKernelDDBase/*.xml
else
echo "check if AMDA_IHM/generic_data directory exists"
fi
if test $AMDAINSTALLATION/AMDA_IHM/generic_data/help/auto
then
rm $AMDAINSTALLATION/AMDA_IHM/help/auto/*
rm $AMDAINSTALLATION/AMDA_IHM/help/auto/img/*
fi
if test $AMDAINSTALLATION/AMDA_Kernel/config
then
rm $AMDAINSTALLATION/AMDA_Kernel/config/DataSetInfo/*.xml
rm $AMDAINSTALLATION/AMDA_Kernel/config/InstrumentInfo/*.xml
rm $AMDAINSTALLATION/AMDA_Kernel/config/MissionInfo/*.xml
else
"check if AMDA_Kernel/config directory exists"
fi
if test $AMDAINSTALLATION/AMDA_Kernel/app-generate-paraminfo
then
rm -r $AMDAINSTALLATION/AMDA_Kernel/app-generate-paraminfo/src/*
rm $AMDAINSTALLATION/AMDA_Kernel/app-generate-paraminfo/lib/*
else
"check if AMDA_Kernel/app-generate-paraminfo directory exists"
fi