aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/secondlife setup build.bat
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/secondlife setup build.bat
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/secondlife setup build.bat')
-rw-r--r--linden/indra/newview/secondlife setup build.bat75
1 files changed, 75 insertions, 0 deletions
diff --git a/linden/indra/newview/secondlife setup build.bat b/linden/indra/newview/secondlife setup build.bat
new file mode 100644
index 0000000..169071f
--- /dev/null
+++ b/linden/indra/newview/secondlife setup build.bat
@@ -0,0 +1,75 @@
1@REM Invoke the installer-generation process after
2@REM creating and modifying files necessary for pointing
3@REM the viewer at different grids (production preview, etc)
4@REM
5@REM Usage:
6@REM
7@REM "secondlife setup build.bat" login-page-url installer-args
8@REM
9@REM Examples:
10@REM
11@REM "secondlife setup build.bat" http://secondlife.com/app/login/
12@REM "secondlife setup build.bat" http://secondlife.com/app/login/beta/ /DADITI
13@REM
14
15@IF EXIST ReleaseForDownload\Secondlife.exe GOTO RELEASE_EXE
16@IF EXIST Secondlife.exe GOTO LOCAL_EXE
17@IF EXIST ReleaseNoOpt\newview_noopt.exe GOTO RELEASE_NOOPT_EXE
18
19@echo Could not find Secondlife.exe!
20@pause
21exit 0
22
23:RELEASE_NOOPT_EXE
24@echo Cound not find SecondLife.exe.
25@echo Using newview_noopt.exe - DEVELOPMENT BUILD!
26@pause
27SET EXEFILE=ReleaseNoOpt\newview_noopt.exe
28SET KDUDLL=ReleaseNoOpt\llkdu.dll
29GOTO CONTINUE
30
31:RELEASE_EXE
32SET EXEFILE=ReleaseForDownload\Secondlife.exe
33SET KDUDLL=ReleaseForDownload\llkdu.dll
34GOTO CONTINUE
35
36:LOCAL_EXE
37SET EXEFILE=Secondlife.exe
38SET KDUDLL=..\..\libraries\i686-win32\lib_release\llkdu.dll
39:CONTINUE
40
41@rem Set login page to reflect beta grid status
42call "set_login_page.bat" %1
43
44@rem Extract version information.
45branding\ResHacker -extract %EXEFILE%, branding\version.rc, versioninfo, 1,
46
47@rem Process version information.
48cd branding
49grep FILEVERSION version.rc | gawk "{ print $2; }" > version.txt
50gawk -F , "{ print \"!define VERSION_MAJOR \" $1; }" version.txt > version.include
51gawk -F , "{ print \"!define VERSION_MINOR \" $2; }" version.txt >> version.include
52gawk -F , "{ print \"!define VERSION_PATCH \" $3; }" version.txt >> version.include
53gawk -F , "{ print \"!define VERSION_BUILD \" $4; }" version.txt >> version.include
54echo !define EXE_LOCATION %EXEFILE% >> version.include
55echo !define KDU_DLL %KDUDLL% >> version.include
56
57cd ..
58@rem Build installer
59"C:\Program Files\NSIS\makensis" %2 %3 %4 %5 %6 %7 %8 %9 "secondlife setup.nsi"
60
61@rem Clean up
62del branding\version.include
63del branding\version.rc
64del branding\version.txt
65del branding\ResHacker.log
66del branding\ResHacker.ini
67
68@rem Restore login page changes to avoid accidental commits
69call "restore_login_page.bat"
70
71
72
73@rem pause
74
75:END