aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlinden/scripts/linux/4-package-viewer99
-rw-r--r--linden/scripts/linux/README.txt4
2 files changed, 5 insertions, 98 deletions
diff --git a/linden/scripts/linux/4-package-viewer b/linden/scripts/linux/4-package-viewer
index 5d37696..b2bff7f 100755
--- a/linden/scripts/linux/4-package-viewer
+++ b/linden/scripts/linux/4-package-viewer
@@ -1,100 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. Released under GPL license v2: 3cd ../../indra/viewer-linux-*
4# http://www.gnu.org/licenses/gpl.txt 4make package
5 5
6###############################################################################
7######## THIS IS QUICK'N DIRTY ALPHA SOFTWARE. USE AT YOUR OWN RISKS ! ########
8###############################################################################
9
10###############################################################################
11# BEWARE: this script is meant to compile a -personal- SL client. It is -NOT- #
12# suitable to build client versions meant for public release, because #
13# non-open source code is packaged by this script. #
14###############################################################################
15
16# This bash script is aimed at easying up the build process of a SL client
17# with cmake.
18# You may enable or disable the use of your system's library by editing
19# the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use
20# LL's provided ones).
21# The script also takes care of updating properly the viewer_manifest.py script
22# accordingly, so that you (should) end up with a properly packaged client.
23
24# To use this script, simply make it executable (chmod +x cmake-SL) and
25# put it into /usr/local/bin (or any other directory in your PATH).
26# Then, download the slviewer-src-*.tar.gz, slviewer-linux-libs-*.tar.gz,
27# slviewer-artwork-*.zip and fmodapi*.tar.gz archives, and finally, invoke
28# make-SL as follow:
29# cmake-SL path_to_archives (example: make-SL ~/downloads)
30# or simply:
31# cmake-SL
32# when invoking from the directory where the archives are.
33# The sources will be installed into the PATH_TO_SOURCES directory,
34# and the client will be built into the TEMP_DIR directory.
35# The packaged build will be moved to your home directory.
36#
37# If you want to retry a compilation after fixing something manually and
38# don't want cmake-SL to start all over again, overwriting everything,
39# you may invoke it with the --retry option, like this:
40# cmake-SL --retry
41#
42# Finally, if you just want to prepare the sources without starting the
43# compilation, use:
44# cmake-SL [path_to_archives] --prep
45#
46# This script has been tested by the author, on (very customized)
47# Mandriva 2007.1 and 2009.0 distros.
48# Tested with SL v1.21 and v1.22 sources.
49
50source config-SL-source
51
52########### functions definitions ###########
53
54function package() {
55 cd $PATH_TO_SOURCES/indra
56 echo "Compiling the client into $TEMP_DIR..."
57 nice -n 19 ionice -c 3 time ./develop.py package --type=Release build
58# if (($? == 0)) ; then
59# mv -f $PATH_TO_SOURCES/indra/viewer-linux-i686*/newview/SecondLife*.tar.bz2 $HOME/
60# fi
61}
62
63########### end of functions ###########
64
65if [ "$TEMP_DIR" == "" ] ; then
66 export TEMP_DIR="/usr/tmp/$USER"
67fi
68
69# Check to see if we simply want to retry a compilation:
70if [ "$1" == "--retry" ] ; then
71 package
72 exit $?
73fi
74
75# Use the parameter (if any) as the path to the archives:
76
77PATH_TO_ARCHIVES=`pwd`
78if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then
79 if [ -d $1 ] ; then
80 PATH_TO_ARCHIVES=$1
81 shift
82 fi
83fi
84
85cd $PATH_TO_SOURCES/indra
86
87# Do a clean build
88#./develop.py clean
89
90# Force the vectorization use if we chose so.
91if [ "$FORCE_VECTORIZE" == "yes" ] ; then
92 TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1"
93fi
94if [ "$ALLOW_WARNINGS" == "yes" ] ; then
95 FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE"
96else
97 FATAL_WARNINGS=""
98fi
99
100package
diff --git a/linden/scripts/linux/README.txt b/linden/scripts/linux/README.txt
index f1e150f..6a4e2b5 100644
--- a/linden/scripts/linux/README.txt
+++ b/linden/scripts/linux/README.txt
@@ -1,6 +1,6 @@
1How to build a linux version. 1How to build a linux version.
2 2
3Edit config-SL-source to suit, the one that comes with the meta 7 viewer 3Edit config-SL-source to suit, the one that comes with the viewer
4is the one used to build the linux release. 4is the one used to build the linux release.
5 5
6Run the scripts in order - 6Run the scripts in order -
@@ -18,6 +18,8 @@ things to not use them. The compile script does the actual work.
18Usually when making changes, only the compile script needs to be run 18Usually when making changes, only the compile script needs to be run
19again. 19again.
20 20
214-package-viewer can be run at a later stage to actually build a tarball
22of the viewer, ready for users to install.
21 23
22These scripts are based on cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. 24These scripts are based on cmake-SL v1.31 (c)2008-2009 Henri Beauchamp.
23Released under GPL license v2: http://www.gnu.org/licenses/gpl.txt 25Released under GPL license v2: http://www.gnu.org/licenses/gpl.txt