aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/releng
diff options
context:
space:
mode:
authorgareth2007-05-05 19:16:26 +0000
committergareth2007-05-05 19:16:26 +0000
commit0dbb743e2d4cf4a6a98d952574e59a075cfb125d (patch)
tree370440bd700353db293143388529096224a75c40 /releng
parentZOMG! A release-engineering setup (or rather, 2 scripts, working on it) (diff)
downloadopensim-SC-0dbb743e2d4cf4a6a98d952574e59a075cfb125d.zip
opensim-SC-0dbb743e2d4cf4a6a98d952574e59a075cfb125d.tar.gz
opensim-SC-0dbb743e2d4cf4a6a98d952574e59a075cfb125d.tar.bz2
opensim-SC-0dbb743e2d4cf4a6a98d952574e59a075cfb125d.tar.xz
Added templates script
Added VersionInfo.cs template
Diffstat (limited to 'releng')
-rwxr-xr-xreleng/createreldir.sh9
-rwxr-xr-xreleng/dobuild.sh20
-rwxr-xr-xreleng/parsetmpl.sh5
-rw-r--r--releng/templates/VersionInfo.cs.tmpl37
4 files changed, 71 insertions, 0 deletions
diff --git a/releng/createreldir.sh b/releng/createreldir.sh
new file mode 100755
index 0000000..eb470b0
--- /dev/null
+++ b/releng/createreldir.sh
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3# this script creates a new opensim-major.minor directory and copies all the relevant files into it
4# not designed for direct invocation from the command line
5
6mkdir opensim-$OPENSIMMAJOR.$OPENSIMMINOR
7
8cp -R dist/* opensim-$OPENSIMMAJOR.$OPENSIMMINOR
9cp -R build/bin/* opensim-$OPENSIMMAJOR.$OPENSIMMINOR/bin
diff --git a/releng/dobuild.sh b/releng/dobuild.sh
new file mode 100755
index 0000000..0fbb979
--- /dev/null
+++ b/releng/dobuild.sh
@@ -0,0 +1,20 @@
1#!/bin/sh
2
3# this script does a guaranteed clean build from SVN using a URL specified on the command line
4
5rm -rf build/
6mkdir build
7
8printf "Getting fresh source tree from SVN..."
9svn checkout $1 build
10
11printf "Updating templates..."
12./parsetmpl.sh templates/VersionInfo.cs.tmpl >build/OpenSim.RegionServer/VersionInfo.cs
13
14printf "Running prebuild..."
15cd build
16mono bin/Prebuild.exe /target nant
17
18printf "Doing the build..."
19nant
20
diff --git a/releng/parsetmpl.sh b/releng/parsetmpl.sh
new file mode 100755
index 0000000..8e4eac2
--- /dev/null
+++ b/releng/parsetmpl.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3# this script parses a template to replace @@ tokens
4
5cat $1 | sed s/@@VERSION/$OPENSIMMAJOR.$OPENSIMMINOR/g | sed s/@@BUILD/`date +%s`/g | sed s/@@SVNREV/`svnversion`/g
diff --git a/releng/templates/VersionInfo.cs.tmpl b/releng/templates/VersionInfo.cs.tmpl
new file mode 100644
index 0000000..29159e2
--- /dev/null
+++ b/releng/templates/VersionInfo.cs.tmpl
@@ -0,0 +1,37 @@
1/*
2Copyright (c) OpenSim project, http://osgrid.org/
3*
4* Redistribution and use in source and binary forms, with or without
5* modification, are permitted provided that the following conditions are met:
6* * Redistributions of source code must retain the above copyright
7* notice, this list of conditions and the following disclaimer.
8* * Redistributions in binary form must reproduce the above copyright
9* notice, this list of conditions and the following disclaimer in the
10* documentation and/or other materials provided with the distribution.
11* * Neither the name of the <organization> nor the
12* names of its contributors may be used to endorse or promote products
13* derived from this software without specific prior written permission.
14*
15* THIS SOFTWARE IS PROVIDED BY <copyright holder> ``AS IS'' AND ANY
16* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18* DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
19* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*/
26
27using System;
28
29namespace OpenSim
30{
31 /// <summary>
32 /// </summary>
33 public class VersionInfo
34 {
35 public static string Version = "@@VERSION, Build @@BUILD, Revision @@SVNREV";
36 }
37}