aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/releng
diff options
context:
space:
mode:
authorMW2007-05-26 13:40:19 +0000
committerMW2007-05-26 13:40:19 +0000
commit3436961bb5c01d659d09be134368f4f69460cef9 (patch)
tree3753ba4d7818df2a6bce0bbe863ff033cdfd568a /releng
downloadopensim-SC_OLD-3436961bb5c01d659d09be134368f4f69460cef9.zip
opensim-SC_OLD-3436961bb5c01d659d09be134368f4f69460cef9.tar.gz
opensim-SC_OLD-3436961bb5c01d659d09be134368f4f69460cef9.tar.bz2
opensim-SC_OLD-3436961bb5c01d659d09be134368f4f69460cef9.tar.xz
Start of rewrite 5279!
Diffstat (limited to 'releng')
-rw-r--r--releng/CAUTION4
-rw-r--r--releng/README3
-rw-r--r--releng/createreldir.sh9
-rw-r--r--releng/dist/INSTALL33
-rw-r--r--releng/dist/README70
-rw-r--r--releng/dist/bin/OpenSim3
-rw-r--r--releng/dobuild.sh20
-rw-r--r--releng/makerel.sh30
-rw-r--r--releng/parsetmpl.sh5
-rw-r--r--releng/templates/VersionInfo.cs.tmpl37
10 files changed, 214 insertions, 0 deletions
diff --git a/releng/CAUTION b/releng/CAUTION
new file mode 100644
index 0000000..6418046
--- /dev/null
+++ b/releng/CAUTION
@@ -0,0 +1,4 @@
1!!!!!!!!!!!!! DANGER DANGER !!!!!!!!!!!!!!!!!!!!!!!!!!!
2DO NOT RUN ANY OF THE SCRIPTS IN THIS DIRECTORY WITHOUT
3READING THEM!!!!!!!!!!!!!
4!!!!!!!!!!!!! DANGER DANGER !!!!!!!!!!!!!!!!!!!!!!!!!!!
diff --git a/releng/README b/releng/README
new file mode 100644
index 0000000..e73f395
--- /dev/null
+++ b/releng/README
@@ -0,0 +1,3 @@
1This directory contains scripts etc for creating a tarball/package out of the SVN tree.
2Use makerel.sh to generate a tarball, do not use other scripts
3It is designed to be run before releases or by developers/users before a local install from source.
diff --git a/releng/createreldir.sh b/releng/createreldir.sh
new file mode 100644
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/dist/INSTALL b/releng/dist/INSTALL
new file mode 100644
index 0000000..f67fe43
--- /dev/null
+++ b/releng/dist/INSTALL
@@ -0,0 +1,33 @@
1INSTALLING FROM SOURCE WITH WINDOWS
2
31 - Ensure you have visual studio express (the C# edition)
4
52 - Check you have a clean source tree with the latest VS2005 solution, if unsure run prebuild (See README file)
6
73 - Open the solution in visual studio and build it
8
94 - Look in bin/ for the output
10
115 - ???
12
136 - Profit
14
15INSTALLING FROM SOURCE WITH LINUX/BSD/*NIX
16
171 - Ensure you have a clean source tree with latest nant build files, if not, get one or run prebuild (See README file)
18
192 - Go to a shell prompt and change to the correct directory
20
213 - Type the following:
22
23nant
24
254 - Look in bin/ for the output
26
275 - ???
28
296 - Profit
30
31INSTALLING BINARY RELEASE
32
33Simply extract the tarball into a good location and run straight out of bin/. You may also wish to put all the binaries into /opt/opensim on *nix systems and adjust your path accordingly. At time of writing there is no official way yet to do this. Watch this space.
diff --git a/releng/dist/README b/releng/dist/README
new file mode 100644
index 0000000..125d5da
--- /dev/null
+++ b/releng/dist/README
@@ -0,0 +1,70 @@
1For installation notes, please read INSTALL
2
3RUNNING SANDBOX MODE (the standard way)
4
5To get up and running in sandbox mode, please start up opensim like this from the command line:
6
7(first ensure you are in the right directory)
8
9OpenSim.exe -sandbox (windows)
10
11mono OpenSim.exe -sandbox (linux/BSD/MacOS X)
12
13Then startup your second life viewer with the following parameters:
14
15-loginuri http://yourserver:9000/
16
17The method to do this is dependent upon your OS. "yourserver" will be 127.0.0.1 if you accept the defaults when starting opensim.
18
19
20RUNNING SANDBOX WITH USER ACCOUNTS
21
22* open cmd window, go to /bin and launch
23OpenSim.exe -sandbox -loginserver -useraccounts
24
25* launch web browser, go to
26http://localhost:9000/Admin
27enter password 'Admin'
28
29* Select 'Accounts', enter credentials, press 'Create'
30
31* Now, log on thru your viewer (see above) with your newly created credentials.
32
33* Have Fun!
34
35
36PREBUILD
37
38We use Prebuild to generate vs2005 solutions and nant build scripts.
39
40=== Building Prebuild ===
41
42At the moment, the Prebuild exe is shipped as /bin/Prebuild.exe so you shouldn't really have to build it.
43
44But here's the instructions anyway :
45
46The Prebuild master project is /prebuild.xml
47
48To build it with vs2005 :
49
50* build the solution /Prebuild/Prebuild.sln
51
52To build it with nant :
53
54* cd to /Prebuild/
55* type 'nant'
56
57After you've built it, it will land in the root /bin/ directory,
58
59=== Modyfying the OpenSim solution ===
60
61When adding or changing projects, modify the prebuild.xml and then execute
62
63bin/Prebuild.exe /target {target}
64
65where target is either
66vs2005 - to generate new vs2005 solutions and projects
67nant - to generate new nant build scripts
68
69Remember to run prebuild whenever you've added or removed files as well.
70
diff --git a/releng/dist/bin/OpenSim b/releng/dist/bin/OpenSim
new file mode 100644
index 0000000..9b46075
--- /dev/null
+++ b/releng/dist/bin/OpenSim
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3mono OpenSim.exe $*
diff --git a/releng/dobuild.sh b/releng/dobuild.sh
new file mode 100644
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/makerel.sh b/releng/makerel.sh
new file mode 100644
index 0000000..b7bc568
--- /dev/null
+++ b/releng/makerel.sh
@@ -0,0 +1,30 @@
1#!/bin/sh
2
3# This is the one!
4
5export OPENSIMMAJOR=0
6export OPENSIMMINOR=2
7export BUILD=`date +%s`
8export BRANCH=DEVEL
9export SVNURL=svn://openmetaverse.org/opensim/trunk
10
11
12
13
14
15# shouldn't have to change anything below here
16
17script dobuild.log -c "./dobuild.sh $SVNURL"
18if [ ! $? -eq 0 ]
19then
20 echo "Build failed!"
21else
22 script createrel.log -c ./createreldir.sh
23 rm -rf build
24 tar cvf opensim-$OPENSIMMAJOR.$OPENSIMMINOR-$BUILD-$BRANCH.tar opensim-$OPENSIMMAJOR.$OPENSIMMINOR/*
25 gzip opensim-$OPENSIMMAJOR.$OPENSIMMINOR-$BUILD-$BRANCH.tar
26fi
27
28rm -rf opensim-$OPENSIMMAJOR.$OPENSIMMINOR
29echo "Produced binary tarball ready for distribution."
30
diff --git a/releng/parsetmpl.sh b/releng/parsetmpl.sh
new file mode 100644
index 0000000..0ce6d24
--- /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/$BUILD/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}