Last change
on this file since 640 was
11,
checked in by arnault, 20 years ago
|
Changing eol-style property
|
-
Property svn:eol-style set to
native
|
File size:
808 bytes
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | @echo off |
---|
4 | |
---|
5 | rem |
---|
6 | rem 1 absolute source directory |
---|
7 | rem 2 file name |
---|
8 | rem 3 absolute installation directory |
---|
9 | rem |
---|
10 | |
---|
11 | set source_dir=%1% |
---|
12 | set file_name=%2% |
---|
13 | set install_dir=%3% |
---|
14 | |
---|
15 | if "%source_dir%"=="" exit /B 0 |
---|
16 | if "%file_name%"=="" exit /B 0 |
---|
17 | if "%install_dir%"=="" exit /B 0 |
---|
18 | |
---|
19 | set dest_file_path=%install_dir%\%file_name% |
---|
20 | set ref_file=%dest_file_path%.cmtref |
---|
21 | set full_source_name=%source_dir%\%file_name% |
---|
22 | |
---|
23 | if %install_dir%=="" exit /B 0 |
---|
24 | |
---|
25 | if NOT exist %install_dir% mkdir %install_dir% |
---|
26 | |
---|
27 | if NOT exist %install_dir% echo "Cannot install file %file_name%, no installation directory specified" & exit /B 0 |
---|
28 | |
---|
29 | echo Installing file %file_name% into %install_dir% |
---|
30 | |
---|
31 | if exist %dest_file_path% del %dest_file_path% |
---|
32 | |
---|
33 | if exist %ref_file% del %ref_file% |
---|
34 | |
---|
35 | copy /Y %full_source_name% %dest_file_path% |
---|
36 | echo %full_source_name% >%ref_file% |
---|
Note: See
TracBrowser
for help on using the repository browser.