diff options
author | dan miller | 2007-10-19 05:24:38 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:24:38 +0000 |
commit | f205de7847da7ae1c10212d82e7042d0100b4ce0 (patch) | |
tree | 9acc9608a6880502aaeda43af52c33e278e95b9c /libraries/ode-0.9/tools/src-release.sh | |
parent | trying to fix my screwup part deux (diff) | |
download | opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.zip opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.gz opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.bz2 opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.xz |
from the start... checking in ode-0.9
Diffstat (limited to '')
-rw-r--r-- | libraries/ode-0.9/tools/src-release.sh | 104 |
1 files changed, 104 insertions, 0 deletions
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 | ||