source: CMT/v1r19/mgr/cmt_install_action.bat @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 844 bytes
Line 
1
2
3@echo off
4
5rem
6rem 1  absolute source directory
7rem 2  file name
8rem 3  absolute installation directory
9rem
10
11set source_dir=%1%
12set file_name=%2%
13set install_dir=%3%
14
15if "%source_dir%"=="" exit /B 0
16if "%file_name%"=="" exit /B 0
17if "%install_dir%"=="" exit /B 0
18
19set dest_file_path=%install_dir%\%file_name%
20set ref_file=%dest_file_path%.cmtref
21set full_source_name=%source_dir%\%file_name%
22
23if %install_dir%=="" exit /B 0
24
25if NOT exist %install_dir% mkdir %install_dir%
26
27if NOT exist %install_dir% echo "Cannot install file %file_name%, no installation directory specified" & exit /B 0
28
29echo Installing file %file_name% into %install_dir%
30
31if exist %dest_file_path% del %dest_file_path%
32
33if exist %ref_file% del %ref_file%
34
35copy /Y %full_source_name% %dest_file_path%
36echo %full_source_name% >%ref_file%
Note: See TracBrowser for help on using the repository browser.