-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprojexport.bat
36 lines (31 loc) · 1.12 KB
/
projexport.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
rem ------------------------------------------------------------------------------------
rem Setting up from Visual Studio: Add post build step:
rem
rem $(ProjectDir)projexport.bat $(TargetPath)
rem ------------------------------------------------------------------------------------
setlocal enabledelayedexpansion
if not "%~1" == "" goto next1
echo Usage: %0 ^<binary to copy^>
exit /b 1
:next1
set ProbeDir.AnyCPU.1="E:\Prototyping\vlc-2.2.1.32-2013"
set ProbeDir.AnyCPU.2="C:\deleteme"
set ProbeDir.AnyCPU.3="C:\Prototyping\vlc2"
set ProbeDir.AnyCPU.4="C:\Prototyping\user_interface_analysis\godot.git
set ProbeDir.AnyCPU.5="C:\Prototyping\godot\godot_3.0.2-stable_my"
for /f "tokens=2 delims==" %%a in ('set ProbeDir.AnyCPU. 2^>nul') do (
if exist "%%~a" (
echo Copying %~nx1/pdb/xml to %%~a...
if exist %~dpn1.pdb (
copy /Y %~dpn1.pdb "%%~a" >NUL
)
rem API interface xml description file
if exist %~dpn1.xml (
copy /Y %~dpn1.xml "%%~a" >NUL
)
copy /Y %1 "%%~a" >NUL
)
)
endlocal
exit /b