Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ode/ode-0.9/tools/src-release.sh @ 216

Last change on this file since 216 was 216, checked in by mathiask, 16 years ago

[Physik] add ode-0.9

File size: 2.3 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.