| 6555 |
dpurdie |
1 |
@echo off
|
|
|
2 |
goto start
|
|
|
3 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
|
|
4 |
#
|
|
|
5 |
# Module name : jats.bat
|
|
|
6 |
# Module type : JATS Startup
|
|
|
7 |
# Compiler(s) : Windows cmd.exe script
|
|
|
8 |
# Environment(s): Vix Build System
|
|
|
9 |
#
|
|
|
10 |
# Description:
|
|
|
11 |
# JATS startup BATCH file to configure and run JATS
|
|
|
12 |
|
|
|
13 |
# Tailor the environment variables and place within your PATH
|
|
|
14 |
#
|
|
|
15 |
# Installed from:
|
|
|
16 |
# Package: <REPLACETAG-PACKAGE>
|
|
|
17 |
# Version: <REPLACETAG-VERSION>
|
|
|
18 |
#.........................................................................#
|
|
|
19 |
:start
|
|
|
20 |
REM
|
|
|
21 |
REM Important JATS environment variables
|
|
|
22 |
REM
|
|
|
23 |
REM GBE_MACHTYPE - The type of this machine
|
|
|
24 |
REM GBE_PERL - The Perl binary to use
|
|
|
25 |
REM GBE_CORE - The path to the JATS core(*)
|
|
|
26 |
REM GBE_DPKG - The main dpkg_archives repository (*)
|
|
|
27 |
REM GBE_DPKG_CACHE - Optional cache archive (*)
|
|
|
28 |
REM GBE_DPKG_CACHE_CTL - Optional control of GBE_DPKG_CACHE
|
|
|
29 |
REM GBE_DPKG_LOCAL - Optional local archive (*)
|
|
|
30 |
REM GBE_DPKG_STORE - Optional global archive store (*)
|
|
|
31 |
REM GBE_DPKG_REPLICA - Optional package archive store (*)
|
|
|
32 |
REM GBE_DPKG_ESCROW - Optional package archive store for escrow (*)
|
|
|
33 |
REM GBE_DPLY - Optional Deployment archive (*)
|
|
|
34 |
REM GBE_BUILDFILTER - Optional Build filter specification(*)
|
|
|
35 |
REM GBE_PLATFORM - Optional PLATFORM filter. Only these(*)
|
|
|
36 |
REM PLATFORMS will built and make
|
|
|
37 |
REM GBE_ABT - Special. Set by the Auto Build Tool
|
|
|
38 |
REM GBE_JATS_VERSION - Specific version of JATS to be used
|
|
|
39 |
REM GBE_VIEWBASE - Base directory for creating views
|
|
|
40 |
REM GBE_VCS - Default Version Control System (cc or svn)
|
|
|
41 |
REM GBE_CACHE_JATS - Control caching of JATS itself
|
|
|
42 |
REM
|
|
|
43 |
REM Use "jats man EnvVars" for a complete description of environment variables
|
|
|
44 |
REM
|
|
|
45 |
REM (*) User environment variable will be used if present
|
|
|
46 |
REM
|
|
|
47 |
setlocal DISABLEDELAYEDEXPANSION
|
|
|
48 |
set GBE_MACHTYPE=win32
|
|
|
49 |
set GBE_PERL=<REPLACETAG-PERLDIR>\bin\perl.exe
|
|
|
50 |
set LIB=
|
|
|
51 |
set INCLUDE=
|
|
|
52 |
|
|
|
53 |
REM Specify user-local configuration
|
|
|
54 |
if exist %~dp0\jats_config.bat CALL %~dp0\jats_config.bat
|
|
|
55 |
|
|
|
56 |
REM V drive should be mapped to the 'devl' share of a package server
|
|
|
57 |
REM ie: net use v: \\auperaarc01\devl
|
|
|
58 |
|
|
|
59 |
if "%GBE_DPKG%"=="" set GBE_DPKG=<REPLACETAG-DPKG_ARCHIVE>
|
|
|
60 |
if "%GBE_DPKG_CACHE%"=="" set GBE_DPKG_CACHE=
|
|
|
61 |
if "%GBE_DPKG_CACHE_CTL%"=="" set GBE_DPKG_CACHE_CTL=
|
|
|
62 |
if "%GBE_DPKG_LOCAL%"=="" set GBE_DPKG_LOCAL=
|
|
|
63 |
if "%GBE_DPKG_STORE%"=="" set GBE_DPKG_STORE=
|
|
|
64 |
if "%GBE_DPKG_REPLICA%"=="" set GBE_DPKG_REPLICA=
|
|
|
65 |
if "%GBE_DPKG_ESCROW%"=="" set GBE_DPKG_ESCROW=
|
|
|
66 |
if "%GBE_DPLY%"=="" set GBE_DPLY=
|
|
|
67 |
if "%GBE_CORE%"=="" set GBE_CORE=%GBE_DPKG%\core_devl\jats2_current
|
|
|
68 |
if "%GBE_PLATFORM%"=="" set GBE_PLATFORM=
|
|
|
69 |
if "%GBE_VIEWBASE%"=="" set GBE_VIEWBASE=d:\Work
|
|
|
70 |
if "%GBE_CACHE_JATS%"=="" set GBE_CACHE_JATS=1
|
|
|
71 |
if "%GBE_VCS%"=="" set GBE_VCS=svn
|
|
|
72 |
if "%GBE_BUILDFILTER%"=="" set GBE_BUILDFILTER=VS2015 VS2015_X64
|
|
|
73 |
|
|
|
74 |
REM # Release Manager configuration
|
|
|
75 |
if "%GBE_RM_LOCATION%"=="" set GBE_RM_LOCATION=jdbc:oracle:thin:@auawsards001.vix.local:1521:RELEASEM
|
|
|
76 |
if "%GBE_RM_USERNAME%"=="" set GBE_RM_USERNAME=RM_READONLY
|
|
|
77 |
if "%GBE_RM_PASSWORD%"=="" set GBE_RM_PASSWORD=RM_READONLY
|
|
|
78 |
if "%GBE_RM_URL%"=="" set GBE_RM_URL=http://bms:8002/ManagerSuite/Release_Manager
|
|
|
79 |
|
|
|
80 |
if "%GBE_DM_LOCATION%"=="" set GBE_DM_LOCATION=%GBE_RM_LOCATION%
|
|
|
81 |
if "%GBE_DM_USERNAME%"=="" set GBE_DM_USERNAME=DM_READONLY
|
|
|
82 |
if "%GBE_DM_PASSWORD%"=="" set GBE_DM_PASSWORD=DM_READONLY
|
|
|
83 |
if "%GBE_DM_URL%"=="" set GBE_DM_URL=http://bms:8002/ManagerSuite/Deployment_Manager
|
|
|
84 |
|
|
|
85 |
REM SubVersion Support
|
|
|
86 |
if "%GBE_SVN_PATH%"=="" set GBE_SVN_PATH=c:/Program Files/TortoiseSVN/bin
|
|
|
87 |
if "%GBE_SVN_URL_AUPERASVN01%"=="" set GBE_SVN_URL_AUPERASVN01=https://auawsasvn001.vix.local/svn
|
|
|
88 |
if "%GBE_SVN_URL_FRBESASVN01%"=="" set GBE_SVN_URL_FRBESASVN01=http://frbesasvn01.vix.local/svn
|
|
|
89 |
if "%GBE_SVN_URL%"=="" set GBE_SVN_URL=%GBE_SVN_URL_AUPERASVN02%
|
|
|
90 |
|
|
|
91 |
REM............... Internal Use. Do not modify............................#
|
|
|
92 |
REM
|
|
|
93 |
set PERL5LIB=
|
|
|
94 |
set GBE_BIN=
|
|
|
95 |
set GBE_TOOLS=
|
|
|
96 |
set GBE_CONFIG=
|
|
|
97 |
set GBE_SCRIPT=%~f0% : %*%
|
|
|
98 |
REM
|
|
|
99 |
IF NOT EXIST %GBE_PERL% (
|
|
|
100 |
echo ERROR File not found: %GBE_PERL%
|
|
|
101 |
exit /b 1
|
|
|
102 |
)
|
|
|
103 |
IF NOT EXIST %GBE_CORE%\TOOLS\jats.pl (
|
|
|
104 |
echo ERROR File not found: %GBE_CORE%\TOOLS\jats.pl
|
|
|
105 |
exit /b 1
|
|
|
106 |
)
|
|
|
107 |
REM Start the JATS wrapper script passing all the user options
|
|
|
108 |
%GBE_PERL% %GBE_CORE%\TOOLS\jats.pl %*%
|
|
|
109 |
REM End of Script
|