diff options
-rwxr-xr-x | linden/scripts/linux/4-package-viewer | 99 | ||||
-rw-r--r-- | linden/scripts/linux/README.txt | 4 |
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: | 3 | cd ../../indra/viewer-linux-* |
4 | # http://www.gnu.org/licenses/gpl.txt | 4 | make 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 | |||
50 | source config-SL-source | ||
51 | |||
52 | ########### functions definitions ########### | ||
53 | |||
54 | function 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 | |||
65 | if [ "$TEMP_DIR" == "" ] ; then | ||
66 | export TEMP_DIR="/usr/tmp/$USER" | ||
67 | fi | ||
68 | |||
69 | # Check to see if we simply want to retry a compilation: | ||
70 | if [ "$1" == "--retry" ] ; then | ||
71 | package | ||
72 | exit $? | ||
73 | fi | ||
74 | |||
75 | # Use the parameter (if any) as the path to the archives: | ||
76 | |||
77 | PATH_TO_ARCHIVES=`pwd` | ||
78 | if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then | ||
79 | if [ -d $1 ] ; then | ||
80 | PATH_TO_ARCHIVES=$1 | ||
81 | shift | ||
82 | fi | ||
83 | fi | ||
84 | |||
85 | cd $PATH_TO_SOURCES/indra | ||
86 | |||
87 | # Do a clean build | ||
88 | #./develop.py clean | ||
89 | |||
90 | # Force the vectorization use if we chose so. | ||
91 | if [ "$FORCE_VECTORIZE" == "yes" ] ; then | ||
92 | TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1" | ||
93 | fi | ||
94 | if [ "$ALLOW_WARNINGS" == "yes" ] ; then | ||
95 | FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE" | ||
96 | else | ||
97 | FATAL_WARNINGS="" | ||
98 | fi | ||
99 | |||
100 | package | ||
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 @@ | |||
1 | How to build a linux version. | 1 | How to build a linux version. |
2 | 2 | ||
3 | Edit config-SL-source to suit, the one that comes with the meta 7 viewer | 3 | Edit config-SL-source to suit, the one that comes with the viewer |
4 | is the one used to build the linux release. | 4 | is the one used to build the linux release. |
5 | 5 | ||
6 | Run the scripts in order - | 6 | Run the scripts in order - |
@@ -18,6 +18,8 @@ things to not use them. The compile script does the actual work. | |||
18 | Usually when making changes, only the compile script needs to be run | 18 | Usually when making changes, only the compile script needs to be run |
19 | again. | 19 | again. |
20 | 20 | ||
21 | 4-package-viewer can be run at a later stage to actually build a tarball | ||
22 | of the viewer, ready for users to install. | ||
21 | 23 | ||
22 | These scripts are based on cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. | 24 | These scripts are based on cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. |
23 | Released under GPL license v2: http://www.gnu.org/licenses/gpl.txt | 25 | Released under GPL license v2: http://www.gnu.org/licenses/gpl.txt |