From d48ea5bb797037069d641da41da0f195f0124491 Mon Sep 17 00:00:00 2001 From: dan miller Date: Fri, 19 Oct 2007 05:20:48 +0000 Subject: one more for the gipper --- libraries/ode-0.9/tools/checklist.txt | 25 +++++++ libraries/ode-0.9/tools/ftp_msw_script | 8 ++ libraries/ode-0.9/tools/ftp_src_script | 7 ++ libraries/ode-0.9/tools/msw-release.bat | 125 ++++++++++++++++++++++++++++++++ libraries/ode-0.9/tools/src-release.sh | 104 ++++++++++++++++++++++++++ 5 files changed, 269 insertions(+) create mode 100644 libraries/ode-0.9/tools/checklist.txt create mode 100644 libraries/ode-0.9/tools/ftp_msw_script create mode 100644 libraries/ode-0.9/tools/ftp_src_script create mode 100644 libraries/ode-0.9/tools/msw-release.bat create mode 100644 libraries/ode-0.9/tools/src-release.sh (limited to 'libraries/ode-0.9/tools') 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 @@ +RELEASE CHECKLIST +--------------------------------------------- + +( ) Update versions at start of configure.in (AC_INIT, ODE_CURRENT, etc.) + +( ) Create a release branch in SVN + +( ) Run msw-release.bat in VS2003 command prompt + +( ) Run src-release.sh to create source package + (Must run in Linux or Cygwin w/autotools) + + + +SANITY CHECK of release package +--------------------------------------------- + +* binaries exist + +* include/ode/config.h exists + +* configure script exists - if not: is autotools installed? + +* docs have been generated in docs/ + 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 @@ +anonymous +jason379@users.sourceforge.net +cd incoming +bin +prompt +mput ode-win32-*.zip +quit + 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 @@ +user anonymous starkos +cd incoming +bin +prompt +mput ode-src-*.zip +quit + 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 @@ +@echo off +rem *********************************************************** +rem * ODE Windows Binary Release Script +rem * Originally written by Jason Perkins (starkos@gmail.com) +rem * +rem * Prerequisites: +rem * Command-line svn installed on path +rem * Command-line zip installed on path +rem * Run within Visual Studio 2003 command prompt +rem *********************************************************** + +rem * Check arguments +if "%1"=="" goto show_usage +if "%2"=="" goto show_usage + + +rem *********************************************************** +rem * Pre-build checklist +rem *********************************************************** + +echo. +echo STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT. +echo. +echo Are you running at the VS2003 command prompt? +pause +echo. +echo Is the version number "%1" correct? +pause +echo. +echo Does the release branch "%2" exist in SVN? +pause +echo. +echo Are 'svn', '7z', and 'doxygen' on the path? +pause +echo. +echo Okay, ready to build the Windows binary packages for version %1! +pause + + +rem *********************************************************** +rem * Retrieve source code +rem *********************************************************** + +echo. +echo RETRIEVING SOURCE CODE FROM REPOSITORY... +echo. + +svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/%2 ode-%1 + + + +rem *********************************************************** +rem * Prepare source code +rem *********************************************************** + +echo. +echo PREPARING SOURCE CODE FROM REPOSITORY... +echo. + +cd ode-%1 +copy build\config-default.h include\ode\config.h + +cd ode\doc +doxygen + +cd ..\..\.. + + +rem *********************************************************** +rem * Build the binaries +rem *********************************************************** + +echo. +echo BUILDING RELEASE BINARIES... +echo. + +cd ode-%1\build\vs2003 +devenv.exe ode.sln /build DebugLib /project ode +devenv.exe ode.sln /build DebugDLL /project ode +devenv.exe ode.sln /build ReleaseLib /project ode +devenv.exe ode.sln /build ReleaseDLL /project ode + + +rem *********************************************************** +rem * Package things up +rem *********************************************************** + +cd ..\.. +move lib\ReleaseDLL\ode.lib lib\ReleaseDLL\ode-imports.lib + +cd .. +7z a -tzip ode-win32-%1.zip ode-%1\*.txt ode-%1\include\ode\*.h ode-%1\lib\* ode-%1\docs\* + + +rem *********************************************************** +rem * Clean up +rem *********************************************************** + +echo. +echo CLEANING UP... +echo. + +rmdir /s /q ode-%1 + + +rem *********************************************************** +rem * Upload to SF.net +rem *********************************************************** + +echo. +echo Ready to upload package to SourceForce, press ^^C to abort. +pause +ftp -s:ftp_msw_script upload.sourceforge.net +goto done + + +rem *********************************************************** +rem * Error messages +rem *********************************************************** + +:show_usage +echo Usage: msw_release.bat version_number branch_name +goto done + +: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 @@ +#!/bin/sh +################################################################### +# ODE Source Code Release Script +# Originally written by Jason Perkins (starkos@gmail.com) +# +# Prerequisites: +# svn, zip +################################################################### + +# Check arguments +if [ $# -ne 2 ]; then + echo 1>&2 "Usage: $0 version_number branch_name" + exit 1 +fi + + +################################################################### +# Pre-build checklist +################################################################### + +echo "" +echo "STARTING PREBUILD CHECKLIST, PRESS ^^C TO ABORT." +echo "" +echo "Is the version number '$1' correct?" +read line +echo "" +echo "Have you created a release branch named '$2' in SVN?" +read line +echo "" +echo "Have you run all of the tests?" +read line +echo "" +echo "Is the Changelog up to date?" +read line +echo "" +echo "Okay, ready to build the source code package for version $1!" +read line + + +################################################################### +# Retrieve source code +################################################################### + +echo "" +echo "RETRIEVING SOURCE CODE FROM REPOSITORY..." +echo "" +f +svn export https://opende.svn.sourceforge.net/svnroot/opende/branches/$2 ode-$1 + + +################################################################### +# Prepare source code +################################################################### + +echo "" +echo "PREPARING SOURCE TREE..." +echo "" + +cd ode-$1 +chmod 755 autogen.sh +./autogen.sh +rm -rf autom4te.cache + +cp build/config-default.h include/ode/config.h + +cd ode/doc +doxygen + +cd ../../.. + + +################################################################### +# Package source code +################################################################### + +echo "" +echo "PACKAGING SOURCE CODE..." +echo "" + +zip -r9 ode-src-$1.zip ode-$1/* + + +################################################################### +# Clean up +################################################################### + +echo "" +echo "CLEANING UP..." +echo "" + +rm -rf ode-$1 + + +##################################################################### +# Send the files to SourceForge +##################################################################### + +echo "" +echo "Upload packages to SourceForge?" +read line +if [ $line = "y" ]; then + echo "Uploading to SourceForge..." + ftp -n upload.sourceforge.net < ftp_src_script +fi -- cgit v1.1