diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ode-0.9/tools/msw-release.bat | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/libraries/ode-0.9/tools/msw-release.bat b/libraries/ode-0.9/tools/msw-release.bat new file mode 100644 index 0000000..039d4a9 --- /dev/null +++ b/libraries/ode-0.9/tools/msw-release.bat | |||
@@ -0,0 +1,125 @@ | |||
1 | @echo off | ||
2 | rem *********************************************************** | ||
3 | rem * ODE Windows Binary Release Script | ||
4 | rem * Originally written by Jason Perkins (starkos@gmail.com) | ||
5 | rem * | ||
6 | rem * Prerequisites: | ||
7 | rem * Command-line svn installed on path | ||
8 | rem * Command-line zip installed on path | ||
9 | rem * Run within Visual Studio 2003 command prompt | ||
10 | rem *********************************************************** | ||
11 | |||
12 | rem * Check arguments | ||
13 | if "%1"=="" goto show_usage | ||
14 | if "%2"=="" goto show_usage | ||
15 | |||
16 | |||
17 | rem *********************************************************** | ||
18 | rem * Pre-build checklist | ||
19 | rem *********************************************************** | ||
20 | |||
21 | echo. | ||
22 | echo STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT. | ||
23 | echo. | ||
24 | echo Are you running at the VS2003 command prompt? | ||
25 | pause | ||
26 | echo. | ||
27 | echo Is the version number "%1" correct? | ||
28 | pause | ||
29 | echo. | ||
30 | echo Does the release branch "%2" exist in SVN? | ||
31 | pause | ||
32 | echo. | ||
33 | echo Are 'svn', '7z', and 'doxygen' on the path? | ||
34 | pause | ||
35 | echo. | ||
36 | echo Okay, ready to build the Windows binary packages for version %1! | ||
37 | pause | ||
38 | |||
39 | |||
40 | rem *********************************************************** | ||
41 | rem * Retrieve source code | ||
42 | rem *********************************************************** | ||
43 | |||
44 | echo. | ||
45 | echo RETRIEVING SOURCE CODE FROM REPOSITORY... | ||
46 | echo. | ||
47 | |||
48 | svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/%2 ode-%1 | ||
49 | |||
50 | |||
51 | |||
52 | rem *********************************************************** | ||
53 | rem * Prepare source code | ||
54 | rem *********************************************************** | ||
55 | |||
56 | echo. | ||
57 | echo PREPARING SOURCE CODE FROM REPOSITORY... | ||
58 | echo. | ||
59 | |||
60 | cd ode-%1 | ||
61 | copy build\config-default.h include\ode\config.h | ||
62 | |||
63 | cd ode\doc | ||
64 | doxygen | ||
65 | |||
66 | cd ..\..\.. | ||
67 | |||
68 | |||
69 | rem *********************************************************** | ||
70 | rem * Build the binaries | ||
71 | rem *********************************************************** | ||
72 | |||
73 | echo. | ||
74 | echo BUILDING RELEASE BINARIES... | ||
75 | echo. | ||
76 | |||
77 | cd ode-%1\build\vs2003 | ||
78 | devenv.exe ode.sln /build DebugLib /project ode | ||
79 | devenv.exe ode.sln /build DebugDLL /project ode | ||
80 | devenv.exe ode.sln /build ReleaseLib /project ode | ||
81 | devenv.exe ode.sln /build ReleaseDLL /project ode | ||
82 | |||
83 | |||
84 | rem *********************************************************** | ||
85 | rem * Package things up | ||
86 | rem *********************************************************** | ||
87 | |||
88 | cd ..\.. | ||
89 | move lib\ReleaseDLL\ode.lib lib\ReleaseDLL\ode-imports.lib | ||
90 | |||
91 | cd .. | ||
92 | 7z a -tzip ode-win32-%1.zip ode-%1\*.txt ode-%1\include\ode\*.h ode-%1\lib\* ode-%1\docs\* | ||
93 | |||
94 | |||
95 | rem *********************************************************** | ||
96 | rem * Clean up | ||
97 | rem *********************************************************** | ||
98 | |||
99 | echo. | ||
100 | echo CLEANING UP... | ||
101 | echo. | ||
102 | |||
103 | rmdir /s /q ode-%1 | ||
104 | |||
105 | |||
106 | rem *********************************************************** | ||
107 | rem * Upload to SF.net | ||
108 | rem *********************************************************** | ||
109 | |||
110 | echo. | ||
111 | echo Ready to upload package to SourceForce, press ^^C to abort. | ||
112 | pause | ||
113 | ftp -s:ftp_msw_script upload.sourceforge.net | ||
114 | goto done | ||
115 | |||
116 | |||
117 | rem *********************************************************** | ||
118 | rem * Error messages | ||
119 | rem *********************************************************** | ||
120 | |||
121 | :show_usage | ||
122 | echo Usage: msw_release.bat version_number branch_name | ||
123 | goto done | ||
124 | |||
125 | :done | ||