-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakebin.cmd
39 lines (39 loc) · 1.23 KB
/
makebin.cmd
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
37
38
39
rem $(SolutionDir) $(TargetDir) $(TargetName) $(TargetPath) is % 1..4
rem \"scripts" release\ name of app path to app
rem replace %2 with %2DataFiles\ and %1 is where the main folders as such as sources, scripts, etc
rem
mkdir %1temp
mkdir %1temp\DataFiles
set ARC=binaries-for-testing.tar
del %1%ARC%
set SRC=%2
set IS_64=%SRC:~-12,-9%
if %IS_64% == x64 (
rem
rem the release has the latest as that is where editing is to be done
rem there might be new document files in sources that need to be pushed out
mkdir %2DataFiles
echo Adding new .docx and .html to %2DataFiles from the source folder
replace /A %1sources\*.docx %2DataFiles
replace /A %1sources\*.html %2DataFiles
echo Updating .docx and .html files in source folder from newer ones in %2DataFiles
replace /U /S %2DataFiles\*.docx %1sources
replace /U /S %2DataFiles\*.html %1sources
rem
set PGM=%2%364.exe
xcopy %2*agil*.dll %1temp
rem
rem copy entire folder after deleteing the one in debug
rmdir /s /q %2..\Debug\DataFiles
xcopy /E /I /Y %2DataFiles %2..\Debug\DataFiles
xcopy /E /I /Y %2DataFiles %1temp\DataFiles
rem
xcopy %4 %1temp
xcopy %userprofile%\Downloads\macros.html %1temp\DataFiles
cd %1
tar -z -cf %1%ARC% temp
) else (
set PGM=%2%332.exe
)
cd ..
rmdir /S /Q %1temp