2009-02-06 19:52:59 +00:00
|
|
|
@echo off
|
|
|
|
rem
|
|
|
|
rem Usage: postBuild.cmd SourcePath DestDir DestFile DestExt
|
|
|
|
rem
|
|
|
|
rem SourcePath - $(TargetPath) - Fully qualified path of the generated target file.
|
|
|
|
rem DestDir - $(SolutionDir) - Directory of the destination, usually the same as the solution.
|
|
|
|
rem DestFile - Base filename of the target/dest, without extension!
|
|
|
|
rem DestExt - Extension of the target/dest!
|
|
|
|
|
2009-02-17 01:38:02 +00:00
|
|
|
set pcsxoutdir=%~2\bin\plugins
|
|
|
|
set pcsxoutname=%pcsxoutdir%\%~3%4
|
|
|
|
set pcsxnewname=%pcsxoutdir%\%~3-r$WCREV$$WCMODS?m:$%4
|
2009-02-06 19:52:59 +00:00
|
|
|
|
|
|
|
IF NOT EXIST %pcsxoutdir% (
|
|
|
|
md %pcsxoutdir%
|
|
|
|
)
|
|
|
|
|
2009-02-17 01:38:02 +00:00
|
|
|
copy /Y %~1 %pcsxoutname%
|
|
|
|
copy /Y %~1 %pcsxnewname%
|
2009-02-07 20:11:13 +00:00
|
|
|
|
2009-02-06 19:52:59 +00:00
|
|
|
if ERRORLEVEL 0 (
|
2009-02-07 20:11:13 +00:00
|
|
|
echo Target copied to %pcsxnewname%
|
2009-02-06 19:52:59 +00:00
|
|
|
)
|
2009-02-07 20:11:13 +00:00
|
|
|
exit 0
|