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