a | b/trunk/CreatePackage.bat | ||
---|---|---|---|
1 | REM Run this batch file to create a package for the stepper driver |
||
2 | REM You need to store the library SM3_Drive_RaspiStepper.library in the |
||
3 | REM same folder first. |
||
4 | |||
5 | @echo off |
||
6 | |||
7 | SET PACKAGENAME=sm3raspi-stepper |
||
8 | |||
9 | rmdir /S /Q %PACKAGENAME% |
||
10 | mkdir %PACKAGENAME% |
||
11 | xcopy /E package %PACKAGENAME% |
||
12 | |||
13 | mkdir %PACKAGENAME%\Component |
||
14 | mkdir %PACKAGENAME%\Component\DeviceDescription_Direct |
||
15 | mkdir %PACKAGENAME%\Component\DeviceDescription_PulsDir |
||
16 | mkdir %PACKAGENAME%\Component\Library |
||
17 | mkdir %PACKAGENAME%\Component\Project |
||
18 | |||
19 | xcopy StepperTestProject.project %PACKAGENAME%\Component\Project |
||
20 | |||
21 | xcopy devices\SM3_Drive_RaspiStepper_Direct.devdesc.xml %PACKAGENAME%\Component\DeviceDescription_Direct\ |
||
22 | xcopy devices\StandardParameters.xml %PACKAGENAME%\Component\DeviceDescription_Direct\ |
||
23 | xcopy devices\SoftMotion_Raspi_Stepper.ico %PACKAGENAME%\Component\DeviceDescription_Direct\ |
||
24 | |||
25 | xcopy devices\SM3_Drive_RaspiStepper_PulsDir.devdesc.xml %PACKAGENAME%\Component\DeviceDescription_PulsDir\ |
||
26 | xcopy devices\StandardParameters.xml %PACKAGENAME%\Component\DeviceDescription_PulsDir\ |
||
27 | xcopy devices\SoftMotion_Raspi_Stepper.ico %PACKAGENAME%\Component\DeviceDescription_PulsDir\ |
||
28 | |||
29 | xcopy SM3_Drive_RaspiStepper.library %PACKAGENAME%\Component\Library\ |
||
30 | |||
31 | del %PACKAGENAME%.zip |
||
32 | cd %PACKAGENAME% |
||
33 | zip -r -9 ../%PACKAGENAME%.zip * |
||
34 | cd .. |
||
35 | |||
36 | del /Q %PACKAGENAME%.package |
||
37 | rename %PACKAGENAME%.zip %PACKAGENAME%.package |
||
38 | |||
39 | rmdir /S /Q %PACKAGENAME% |