Skip to content
Snippets Groups Projects
Commit ec840434 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

PKG: fix uninstall scripts

parent c2b68af9
No related branches found
No related tags found
No related merge requests found
:: @echo off
:: Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) ::
:: :: Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
:: This file is part of Orfeo Toolbox ::
:: :: This file is part of Orfeo Toolbox
:: https://www.orfeo-toolbox.org/ ::
:: :: https://www.orfeo-toolbox.org/
:: Licensed under the Apache License, Version 2.0 (the "License"); ::
:: you may not use this file except in compliance with the License. :: Licensed under the Apache License, Version 2.0 (the "License");
:: You may obtain a copy of the License at :: you may not use this file except in compliance with the License.
:: :: You may obtain a copy of the License at
:: http://www.apache.org/licenses/LICENSE-2.0 ::
:: :: http://www.apache.org/licenses/LICENSE-2.0
:: Unless required by applicable law or agreed to in writing, software ::
:: distributed under the License is distributed on an "AS IS" BASIS, :: Unless required by applicable law or agreed to in writing, software
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. :: distributed under the License is distributed on an "AS IS" BASIS,
:: See the License for the specific language governing permissions and :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: limitations under the License. :: See the License for the specific language governing permissions and
:: limitations under the License.
:: script to uninstall OTB
:: script to uninstall OTB
setlocal
set CUR_DIR=%~dp0 setlocal
cd %CUR_DIR%.. cd %~dp0%..
set MY_INSTALL_DIR=%cd%
del /S /Q %MY_INSTALL_DIR%\include\OTB* || exit 1 echo - Clean include\OTB*
del /S /Q %MY_INSTALL_DIR%\lib\cmake\OTB* || exit 1 for /f %%i in ('dir /b include\OTB*') do rd /S /Q include\%%i
del /S /Q %MY_INSTALL_DIR%\lib\otb* || exit 1
del /S /Q %MY_INSTALL_DIR%\lib\python\*otbApplication.* || exit 1 echo - Clean lib\cmake\OTB*
del /S /Q %MY_INSTALL_DIR%\lib\python3\*otbApplication.* || exit 1 for /f %%i in ('dir /b lib\cmake\OTB*') do rd /S /Q lib\cmake\%%i
del /S /Q %MY_INSTALL_DIR%\lib\java\org.otb.application.jar || exit 1
del /S /Q %MY_INSTALL_DIR%\bin\otb* || exit 1 echo - Clean share\OTB*
del /S /Q %MY_INSTALL_DIR%\bin\monteverdi.exe || exit 1 for /f %%i in ('dir /b share\OTB*') do rd /S /Q share\%%i
del /S /Q %MY_INSTALL_DIR%\bin\mapla.exe || exit 1
del /S /Q %MY_INSTALL_DIR%\mapla.bat || exit 1 echo - Clean lib\otb
del /S /Q %MY_INSTALL_DIR%\monteverdi.bat || exit 1 rd /S /Q lib\otb
del /S /Q %MY_INSTALL_DIR%\share\OTB* || exit 1
del /S /Q "%MY_INSTALL_DIR%\OTB Project.zip" || exit 1 del /S /Q lib\otb*
endlocal del /S /Q lib\python\*otbApplication.* || exit 1
del /S /Q lib\python3\*otbApplication.* || exit 1
del /S /Q lib\java\org.otb.application.jar || exit 1
del /S /Q bin\otb* || exit 1
del /S /Q bin\monteverdi.exe || exit 1
del /S /Q bin\mapla.exe || exit 1
del /S /Q mapla.bat || exit 1
del /S /Q monteverdi.bat || exit 1
del /S /Q otbenv.* || exit 1
del /S /Q start_devenv.bat || exit 1
del /S /Q "OTB Project.zip" || exit 1
echo OTB is now uninstalled from %cd%
endlocal
...@@ -22,8 +22,10 @@ set -e ...@@ -22,8 +22,10 @@ set -e
rm -fr OUT_DIR/include/OTB-* rm -fr OUT_DIR/include/OTB-*
rm -f OUT_DIR/lib/{libotb*,libOTB*} rm -f OUT_DIR/lib/{libotb*,libOTB*}
rm -fr OUT_DIR/lib/{otb,python/*otbApplication*,python3/*otbApplication*,java/org.otb.application.jar} rm -fr OUT_DIR/lib/{otb,python/*otbApplication*,python3/*otbApplication*,java/org.otb.application.jar}
rm -fr OUT_DIR/lib/cmake/OTB-*
rm -fr OUT_DIR/share/OTB* rm -fr OUT_DIR/share/OTB*
rm -fv OUT_DIR/bin/{otb*,monteverdi,mapla} rm -fv OUT_DIR/bin/{otb*,monteverdi,mapla}
rm -fv OUT_DIR/{mapla.sh,monteverdi.sh} rm -fv OUT_DIR/{mapla.sh,monteverdi.sh}
rm -fv OUT_DIR/otbenv.*
echo "OTB is now uninstalled from OUT_DIR" echo "OTB is now uninstalled from OUT_DIR"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment