Repository navigation
Expand file tree
/
Copy pathPUBLISH.BAT
More file actions
96 lines (87 loc) · 3.26 KB
/
Copy pathPUBLISH.BAT
File metadata and controls
96 lines (87 loc) · 3.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
rem This file runs all of the script commands to publish the PPMScope Project to the website directory (falls short of issuing FTP commands)
rem Jonathan Weaver
rem Updated 8/28/2014
set pgpath=c:\Program Files (x86)
set prpath=c:\OneDrive\projects\PPMScope
rem Build Local Help
cd %prpath%
xcopy PCB\WiringOfPCB.jpg %prpath%\PCSource\Help /y
xcopy PCB\"Version 1.20"\*.pdf %prpath%\PCSource\Help /y
xcopy Schematics\"Version 1.20"\*.pdf %prpath%\PCSource\Help /y
xcopy Schematics\"USBToSerial Daughterboard"\*.pdf %prpath%\PCSource\Help\ /y
xcopy PCB\"USBToSerial Daughterboard"\*.pdf %prpath%\PCSource\Help\ /y
cd HelpBuild
build
cd %prpath%
rem Compile Help File
rem Requires an installation of HTML Help Workshop
"%pgpath%\HTML Help Workshop\hhc" "%prpath%\PCSource\Help\ppmscope.hhp"
xcopy PCSource\Help\ppmscope.chm %prpath% /y
rem Rebuild PC Program
"%pgpath%\Codeblocks\codeblocks" /na /nd --no-splash-screen --rebuild %prpath%\PCSource\PPMScope.cbp
rem Update PC Program
xcopy PCSource\PPMScope.exe %prpath% /y
xcopy PCSource\PPMScope.exe.manifest %prpath% /y
xcopy PCSource\default.cfg %prpath% /y
rem Update Firmware files
xcopy "Picasm\Version 1.05\Osc1MHz_v1_0.HEX" PicHex\ /y
xcopy "Picasm\Version 1.20\Osc1MHz_v1_2.HEX" PicHex\ /y
xcopy "Picasm\Version 1.20\Osc1MHz_v1_2 for PIC16F887.HEX" PicHex\ /y
rem Clean Directories
del /s picasm\*.mcs
del /s picasm\*.o
del /s picasm\*.cof
del /s picasm\*.err
del /s picasm\*.cod
del /s picasm\*.lst
del /s picasm\*.map
del /s picasm\*.hex
del PCSource\*.o
del PCSource\*.csv
del PCSource\PPMScope.exe
del PCSource\inpout32.dll
del PCSource\Makefile.win
del PCSource\PPMScope_private.res
del PCSource\PPMScope_private.rc
del PCSource\PPMScope_private.h
del PCSource\classfolders.dcf
del /q PCSource\.objs\*.*
rmdir PCSource\.objs
del /s Spice\*.raw
del /s Schematics\*.backup
del /s Spice\*.log
del /s Schematics\*.dsn.autosave
del /s PCB\*.bak
del /s PCB\*.png
del debug.txt
del PCSource\debug.txt
del PCSource\ppmscope.chm
del PCSource\Help\ppmscope.chm
del /s PCSource\*.zip
del /s picasm\*.zip
del /s Schematics\*.zip
del /s Spice\*.zip
del /s PCB\*.zip
del /s PicHex\*.zip
rem Create Zip File
rem Requires an installation of 7Zip
del PPMScopeWin.zip
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip PCB\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip PCSource\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip Picasm\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip PicHex\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip Schematics\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip Spice\
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip InstallDriver.exe
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip cc-by-sa-30.txt
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip default.cfg
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip gpl.txt
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip inpout32.dll
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip ppmscope.chm
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip PPMScope.exe
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip PPMScope.exe.manifest
"%pgpath%"\7-Zip\7z a %prpath%\PPMScopeWin.zip Readme.txt
rem Copy files back to development directory
xcopy PPMScope.exe PCSource\ /y
xcopy ppmscope.chm PCSource\ /y
xcopy inpout32.dll PCSource\ /y