|
From: <jas...@us...> - 2006-05-24 18:12:00
|
Revision: 969 Author: jason379 Date: 2006-05-24 11:11:47 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/opende/?rev=969&view=rev Log Message: ----------- Tweaked build scripts, added source package script Modified Paths: -------------- trunk/tools/ftp_msw_script trunk/tools/msw-release.bat Added Paths: ----------- trunk/tools/ftp_src_script trunk/tools/src-release.sh Removed Paths: ------------- trunk/.cvsignore trunk/tools/posix-release.sh Deleted: trunk/.cvsignore =================================================================== --- trunk/.cvsignore 2006-05-24 15:42:16 UTC (rev 968) +++ trunk/.cvsignore 2006-05-24 18:11:47 UTC (rev 969) @@ -1 +0,0 @@ -Makefile Modified: trunk/tools/ftp_msw_script =================================================================== --- trunk/tools/ftp_msw_script 2006-05-24 15:42:16 UTC (rev 968) +++ trunk/tools/ftp_msw_script 2006-05-24 18:11:47 UTC (rev 969) @@ -3,7 +3,6 @@ cd incoming bin prompt -mput ode-src-*.zip mput ode-win32-*.zip quit Added: trunk/tools/ftp_src_script =================================================================== --- trunk/tools/ftp_src_script (rev 0) +++ trunk/tools/ftp_src_script 2006-05-24 18:11:47 UTC (rev 969) @@ -0,0 +1,7 @@ +user anonymous jas...@us... +cd incoming +bin +prompt +mput ode-src-*.zip +quit + Modified: trunk/tools/msw-release.bat =================================================================== --- trunk/tools/msw-release.bat 2006-05-24 15:42:16 UTC (rev 968) +++ trunk/tools/msw-release.bat 2006-05-24 18:11:47 UTC (rev 969) @@ -1,12 +1,12 @@ @echo off rem *********************************************************** -rem * ODE Windows Release Script +rem * ODE Windows Binary Release Script rem * Originally written by Jason Perkins (st...@gm...) rem * rem * Prerequisites: rem * Command-line svn installed on path rem * Command-line zip installed on path -rem * Run within Visual Studio command prompt +rem * Run within Visual Studio 2003 command prompt rem *********************************************************** rem * Check arguments @@ -33,7 +33,7 @@ echo Is the Changelog up to date? pause echo. -echo Okay, ready to build the Windows binary package for version %1! +echo Okay, ready to build the source and Windows binary packages for version %1! pause @@ -49,17 +49,6 @@ copy ode-%1\build\config-default.h ode-%1\include\ode\config.h -################################################################### -# Package source code -################################################################### - -echo "" -echo "PACKAGING SOURCE CODE..." -echo "" - -zip -r9 ode-src-%1.zip ode-%1/* - - rem *********************************************************** rem * Build the binaries rem *********************************************************** Deleted: trunk/tools/posix-release.sh =================================================================== --- trunk/tools/posix-release.sh 2006-05-24 15:42:16 UTC (rev 968) +++ trunk/tools/posix-release.sh 2006-05-24 18:11:47 UTC (rev 969) @@ -1,51 +0,0 @@ -#!/bin/sh -################################################################### -# ODE Windows Release Script -# Originally written by Jason Perkins (st...@gm...) -# -# Prerequisites: -# svn, zip, and C++ build tools -################################################################### - -# 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 POSIX packages for version $1!" -read line - - -################################################################### -# Prepare source code -################################################################### - -echo "" -echo "RETRIEVING SOURCE CODE FROM REPOSITORY..." -echo "" - -svn export https://svn.sourceforge.net/svnroot/opende/branches/$2 ode-$1 -cp ode-$1/build/config-default.h ode-$1/include/ode/config.h - - Added: trunk/tools/src-release.sh =================================================================== --- trunk/tools/src-release.sh (rev 0) +++ trunk/tools/src-release.sh 2006-05-24 18:11:47 UTC (rev 969) @@ -0,0 +1,89 @@ +#!/bin/sh +################################################################### +# ODE Source Code Release Script +# Originally written by Jason Perkins (st...@gm...) +# +# 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 + + +################################################################### +# Prepare source code +################################################################### + +echo "" +echo "RETRIEVING SOURCE CODE FROM REPOSITORY..." +echo "" + +svn export https://svn.sourceforge.net/svnroot/opende/branches/$2 ode-$1 + +cd ode-$1 +chmod 755 autogen.sh +./autogen.sh +rm -rf autom4te.cache +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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |