diff options
author | dan miller | 2007-10-19 05:15:33 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:15:33 +0000 |
commit | 79eca25c945a535a7a0325999034bae17da92412 (patch) | |
tree | 40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/tools | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/tools')
-rw-r--r-- | libraries/ode-0.9/tools/checklist.txt | 25 | ||||
-rw-r--r-- | libraries/ode-0.9/tools/ftp_msw_script | 8 | ||||
-rw-r--r-- | libraries/ode-0.9/tools/ftp_src_script | 7 | ||||
-rw-r--r-- | libraries/ode-0.9/tools/msw-release.bat | 125 | ||||
-rw-r--r-- | libraries/ode-0.9/tools/src-release.sh | 104 |
5 files changed, 269 insertions, 0 deletions
diff --git a/libraries/ode-0.9/tools/checklist.txt b/libraries/ode-0.9/tools/checklist.txt new file mode 100644 index 0000000..7aa5c11 --- /dev/null +++ b/libraries/ode-0.9/tools/checklist.txt | |||
@@ -0,0 +1,25 @@ | |||
1 | RELEASE CHECKLIST | ||
2 | --------------------------------------------- | ||
3 | |||
4 | ( ) Update versions at start of configure.in (AC_INIT, ODE_CURRENT, etc.) | ||
5 | |||
6 | ( ) Create a release branch in SVN | ||
7 | |||
8 | ( ) Run msw-release.bat in VS2003 command prompt | ||
9 | |||
10 | ( ) Run src-release.sh to create source package | ||
11 | (Must run in Linux or Cygwin w/autotools) | ||
12 | |||
13 | |||
14 | |||
15 | SANITY CHECK of release package | ||
16 | --------------------------------------------- | ||
17 | |||
18 | * binaries exist | ||
19 | |||
20 | * include/ode/config.h exists | ||
21 | |||
22 | * configure script exists - if not: is autotools installed? | ||
23 | |||
24 | * docs have been generated in docs/ | ||
25 | |||
diff --git a/libraries/ode-0.9/tools/ftp_msw_script b/libraries/ode-0.9/tools/ftp_msw_script new file mode 100644 index 0000000..ee99232 --- /dev/null +++ b/libraries/ode-0.9/tools/ftp_msw_script | |||
@@ -0,0 +1,8 @@ | |||
1 | anonymous | ||
2 | jason379@users.sourceforge.net | ||
3 | cd incoming | ||
4 | bin | ||
5 | prompt | ||
6 | mput ode-win32-*.zip | ||
7 | quit | ||
8 | |||
diff --git a/libraries/ode-0.9/tools/ftp_src_script b/libraries/ode-0.9/tools/ftp_src_script new file mode 100644 index 0000000..75f3af9 --- /dev/null +++ b/libraries/ode-0.9/tools/ftp_src_script | |||
@@ -0,0 +1,7 @@ | |||
1 | user anonymous starkos | ||
2 | cd incoming | ||
3 | bin | ||
4 | prompt | ||
5 | mput ode-src-*.zip | ||
6 | quit | ||
7 | |||
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 | ||
diff --git a/libraries/ode-0.9/tools/src-release.sh b/libraries/ode-0.9/tools/src-release.sh new file mode 100644 index 0000000..011a96b --- /dev/null +++ b/libraries/ode-0.9/tools/src-release.sh | |||
@@ -0,0 +1,104 @@ | |||
1 | #!/bin/sh | ||
2 | ################################################################### | ||
3 | # ODE Source Code Release Script | ||
4 | # Originally written by Jason Perkins (starkos@gmail.com) | ||
5 | # | ||
6 | # Prerequisites: | ||
7 | # svn, zip | ||
8 | ################################################################### | ||
9 | |||
10 | # Check arguments | ||
11 | if [ $# -ne 2 ]; then | ||
12 | echo 1>&2 "Usage: $0 version_number branch_name" | ||
13 | exit 1 | ||
14 | fi | ||
15 | |||
16 | |||
17 | ################################################################### | ||
18 | # Pre-build checklist | ||
19 | ################################################################### | ||
20 | |||
21 | echo "" | ||
22 | echo "STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT." | ||
23 | echo "" | ||
24 | echo "Is the version number '$1' correct?" | ||
25 | read line | ||
26 | echo "" | ||
27 | echo "Have you created a release branch named '$2' in SVN?" | ||
28 | read line | ||
29 | echo "" | ||
30 | echo "Have you run all of the tests?" | ||
31 | read line | ||
32 | echo "" | ||
33 | echo "Is the Changelog up to date?" | ||
34 | read line | ||
35 | echo "" | ||
36 | echo "Okay, ready to build the source code package for version $1!" | ||
37 | read line | ||
38 | |||
39 | |||
40 | ################################################################### | ||
41 | # Retrieve source code | ||
42 | ################################################################### | ||
43 | |||
44 | echo "" | ||
45 | echo "RETRIEVING SOURCE CODE FROM REPOSITORY..." | ||
46 | echo "" | ||
47 | f | ||
48 | svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/$2 ode-$1 | ||
49 | |||
50 | |||
51 | ################################################################### | ||
52 | # Prepare source code | ||
53 | ################################################################### | ||
54 | |||
55 | echo "" | ||
56 | echo "PREPARING SOURCE TREE..." | ||
57 | echo "" | ||
58 | |||
59 | cd ode-$1 | ||
60 | chmod 755 autogen.sh | ||
61 | ./autogen.sh | ||
62 | rm -rf autom4te.cache | ||
63 | |||
64 | cp build/config-default.h include/ode/config.h | ||
65 | |||
66 | cd ode/doc | ||
67 | doxygen | ||
68 | |||
69 | cd ../../.. | ||
70 | |||
71 | |||
72 | ################################################################### | ||
73 | # Package source code | ||
74 | ################################################################### | ||
75 | |||
76 | echo "" | ||
77 | echo "PACKAGING SOURCE CODE..." | ||
78 | echo "" | ||
79 | |||
80 | zip -r9 ode-src-$1.zip ode-$1/* | ||
81 | |||
82 | |||
83 | ################################################################### | ||
84 | # Clean up | ||
85 | ################################################################### | ||
86 | |||
87 | echo "" | ||
88 | echo "CLEANING UP..." | ||
89 | echo "" | ||
90 | |||
91 | rm -rf ode-$1 | ||
92 | |||
93 | |||
94 | ##################################################################### | ||
95 | # Send the files to SourceForge | ||
96 | ##################################################################### | ||
97 | |||
98 | echo "" | ||
99 | echo "Upload packages to SourceForge?" | ||
100 | read line | ||
101 | if [ $line = "y" ]; then | ||
102 | echo "Uploading to SourceForge..." | ||
103 | ftp -n upload.sourceforge.net < ftp_src_script | ||
104 | fi | ||