Last change
on this file since 597 was
11,
checked in by arnault, 20 years ago
|
Changing eol-style property
|
-
Property svn:eol-style set to
native
|
File size:
709 bytes
|
Line | |
---|
1 | |
---|
2 | @echo off |
---|
3 | |
---|
4 | rem |
---|
5 | rem 1 absolute source directory |
---|
6 | rem 2 file name (a directory) |
---|
7 | rem 3 absolute installation directory |
---|
8 | rem |
---|
9 | |
---|
10 | set source_dir=%1% |
---|
11 | set dir_name=%2% |
---|
12 | set install_dir=%3% |
---|
13 | |
---|
14 | if "%source_dir%"=="" exit /B 0 |
---|
15 | if "%dir_name%"=="" exit /B 0 |
---|
16 | if "%install_dir%"=="" exit /B 0 |
---|
17 | |
---|
18 | set dest_file_path=%install_dir%\%dir_name% |
---|
19 | set ref_file=%dest_file_path%.cmtref |
---|
20 | set full_source_name=%source_dir%\%dir_name% |
---|
21 | |
---|
22 | cd %source_dir% |
---|
23 | |
---|
24 | if %install_dir%=="" exit /B 0 |
---|
25 | |
---|
26 | if NOT exist %install_dir% echo "Cannot uninstall directory %dir_name%, no installation directory" & exit /B 0 |
---|
27 | |
---|
28 | echo Removing directory %dir_name% from %install_dir% |
---|
29 | |
---|
30 | if exist %dest_file_path% rmdir /S/Q %dest_file_path% |
---|
31 | if exist %ref_file% del %ref_file% |
---|
Note: See
TracBrowser
for help on using the repository browser.