aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/ode-0.9/tools/checklist.txt25
-rw-r--r--libraries/ode-0.9/tools/ftp_msw_script8
-rw-r--r--libraries/ode-0.9/tools/ftp_src_script7
-rw-r--r--libraries/ode-0.9/tools/msw-release.bat125
-rw-r--r--libraries/ode-0.9/tools/src-release.sh104
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 @@
1RELEASE 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
15SANITY 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 @@
1anonymous
2jason379@users.sourceforge.net
3cd incoming
4bin
5prompt
6mput ode-win32-*.zip
7quit
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 @@
1user anonymous starkos
2cd incoming
3bin
4prompt
5mput ode-src-*.zip
6quit
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
2rem ***********************************************************
3rem * ODE Windows Binary Release Script
4rem * Originally written by Jason Perkins (starkos@gmail.com)
5rem *
6rem * Prerequisites:
7rem * Command-line svn installed on path
8rem * Command-line zip installed on path
9rem * Run within Visual Studio 2003 command prompt
10rem ***********************************************************
11
12rem * Check arguments
13if "%1"=="" goto show_usage
14if "%2"=="" goto show_usage
15
16
17rem ***********************************************************
18rem * Pre-build checklist
19rem ***********************************************************
20
21echo.
22echo STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT.
23echo.
24echo Are you running at the VS2003 command prompt?
25pause
26echo.
27echo Is the version number "%1" correct?
28pause
29echo.
30echo Does the release branch "%2" exist in SVN?
31pause
32echo.
33echo Are 'svn', '7z', and 'doxygen' on the path?
34pause
35echo.
36echo Okay, ready to build the Windows binary packages for version %1!
37pause
38
39
40rem ***********************************************************
41rem * Retrieve source code
42rem ***********************************************************
43
44echo.
45echo RETRIEVING SOURCE CODE FROM REPOSITORY...
46echo.
47
48svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/%2 ode-%1
49
50
51
52rem ***********************************************************
53rem * Prepare source code
54rem ***********************************************************
55
56echo.
57echo PREPARING SOURCE CODE FROM REPOSITORY...
58echo.
59
60cd ode-%1
61copy build\config-default.h include\ode\config.h
62
63cd ode\doc
64doxygen
65
66cd ..\..\..
67
68
69rem ***********************************************************
70rem * Build the binaries
71rem ***********************************************************
72
73echo.
74echo BUILDING RELEASE BINARIES...
75echo.
76
77cd ode-%1\build\vs2003
78devenv.exe ode.sln /build DebugLib /project ode
79devenv.exe ode.sln /build DebugDLL /project ode
80devenv.exe ode.sln /build ReleaseLib /project ode
81devenv.exe ode.sln /build ReleaseDLL /project ode
82
83
84rem ***********************************************************
85rem * Package things up
86rem ***********************************************************
87
88cd ..\..
89move lib\ReleaseDLL\ode.lib lib\ReleaseDLL\ode-imports.lib
90
91cd ..
927z a -tzip ode-win32-%1.zip ode-%1\*.txt ode-%1\include\ode\*.h ode-%1\lib\* ode-%1\docs\*
93
94
95rem ***********************************************************
96rem * Clean up
97rem ***********************************************************
98
99echo.
100echo CLEANING UP...
101echo.
102
103rmdir /s /q ode-%1
104
105
106rem ***********************************************************
107rem * Upload to SF.net
108rem ***********************************************************
109
110echo.
111echo Ready to upload package to SourceForce, press ^^C to abort.
112pause
113ftp -s:ftp_msw_script upload.sourceforge.net
114goto done
115
116
117rem ***********************************************************
118rem * Error messages
119rem ***********************************************************
120
121:show_usage
122echo Usage: msw_release.bat version_number branch_name
123goto 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
11if [ $# -ne 2 ]; then
12 echo 1>&2 "Usage: $0 version_number branch_name"
13 exit 1
14fi
15
16
17###################################################################
18# Pre-build checklist
19###################################################################
20
21echo ""
22echo "STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT."
23echo ""
24echo "Is the version number '$1' correct?"
25read line
26echo ""
27echo "Have you created a release branch named '$2' in SVN?"
28read line
29echo ""
30echo "Have you run all of the tests?"
31read line
32echo ""
33echo "Is the Changelog up to date?"
34read line
35echo ""
36echo "Okay, ready to build the source code package for version $1!"
37read line
38
39
40###################################################################
41# Retrieve source code
42###################################################################
43
44echo ""
45echo "RETRIEVING SOURCE CODE FROM REPOSITORY..."
46echo ""
47f
48svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/$2 ode-$1
49
50
51###################################################################
52# Prepare source code
53###################################################################
54
55echo ""
56echo "PREPARING SOURCE TREE..."
57echo ""
58
59cd ode-$1
60chmod 755 autogen.sh
61./autogen.sh
62rm -rf autom4te.cache
63
64cp build/config-default.h include/ode/config.h
65
66cd ode/doc
67doxygen
68
69cd ../../..
70
71
72###################################################################
73# Package source code
74###################################################################
75
76echo ""
77echo "PACKAGING SOURCE CODE..."
78echo ""
79
80zip -r9 ode-src-$1.zip ode-$1/*
81
82
83###################################################################
84# Clean up
85###################################################################
86
87echo ""
88echo "CLEANING UP..."
89echo ""
90
91rm -rf ode-$1
92
93
94#####################################################################
95# Send the files to SourceForge
96#####################################################################
97
98echo ""
99echo "Upload packages to SourceForge?"
100read line
101if [ $line = "y" ]; then
102 echo "Uploading to SourceForge..."
103 ftp -n upload.sourceforge.net < ftp_src_script
104fi