Subversion Repositories DevTools

Rev

Rev 396 | Rev 3526 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
@echo off
2
goto  start
3
#
4
# Module name   : jats.bat
5
# Module type   : Makefile system
6
# Compiler(s)   :
7
# Environment(s): n/a
8
#
9
# Description:
10
#       Template file for a BATCH file to simplify access to a wrapper
11
#       script to simplify use of JATS components.
12
#
13
#       Tailor the environment variables and place within your PATH
14
#
15
#       To be processed by the Windows cmd.exe command processor
16
#
229 dpurdie 17
# Package: PACKAGE_TAG
227 dpurdie 18
# Version: VERSION_TAG
19
#.........................................................................#
20
:start
21
REM
22
REM     Important JATS environment variables
23
REM
24
REM     GBE_MACHTYPE            - The type of this machine
25
REM     GBE_PERL                - The Perl binary to use
26
REM     GBE_CORE                - The path to the JATS core(*)
27
REM     GBE_DPKG                - The main dpkg_archives repository (*)
28
REM     GBE_DPKG_CACHE          - Optional cache archive (*)
29
REM     GBE_DPKG_LOCAL          - Optional local archive (*)
30
REM     GBE_DPKG_STORE          - Optional global archive store (*)
31
REM     GBE_DPLY                - Optional Deployment archive (*)
32
REM     GBE_BUILDFILTER         - Optional Build filter specification(*)
33
REM     GBE_PLATFORM            - Optional PLATFORM filter. Only these(*)
34
REM                               PLATFORMS will built and make
35
REM     GBE_ABT                 - Special. Set by the Auto Build Tool
36
REM     GBE_JATS_VERSION        - Specific version of JATS to be used
361 dpurdie 37
REM     GBE_VIEWBASE            - Base directory for creating views
38
REM     GBE_VCS                 - Default Version Control System (cc or svn)
227 dpurdie 39
REM     GBE_CACHE_JATS          - Control caching of JATS itself
40
REM
361 dpurdie 41
REM     Use "jats man EnvVars" for a complete description of environment variables
227 dpurdie 42
REM
43
REM     (*) User environment variable will be used if present
44
REM
45
setlocal DISABLEDELAYEDEXPANSION
46
set  GBE_MACHTYPE=win32
47
set  GBE_PERL=c:\perl\bin\perl.exe
48
if "%GBE_DPKG%"==""        set  GBE_DPKG=v:\dpkg_archive
396 dpurdie 49
REM if "%GBE_CORE%"==""        set  GBE_CORE=%GBE_DPKG%\core_devl\jats2_current
229 dpurdie 50
if "%GBE_CORE%"==""        set  GBE_CORE=%GBE_DPKG%\PACKAGE_TAG\VERSION_TAG
227 dpurdie 51
if "%GBE_DPKG_CACHE%"==""  set  GBE_DPKG_CACHE=
52
if "%GBE_DPKG_LOCAL%"==""  set  GBE_DPKG_LOCAL=
53
if "%GBE_DPKG_STORE%"==""  set  GBE_DPKG_STORE=
54
if "%GBE_DPLY%"==""        set  GBE_DPLY=
55
if "%GBE_PLATFORM%"==""    set  GBE_PLATFORM=
56
if "%GBE_VIEWBASE%"==""    set  GBE_VIEWBASE=
57
if "%GBE_CACHE_JATS%"==""  set  GBE_CACHE_JATS=1
361 dpurdie 58
if "%GBE_VCS%"==""         set  GBE_VCS=cc
279 dpurdie 59
if "%GBE_BUILDFILTER%"=="" set  GBE_BUILDFILTER=!LMOS_WIN32 !DF4OBE !MPT
227 dpurdie 60
 
61
 
62
REM  # Toolset configuration
63
REM  #    Visual Studio 6       - Assumed to be installed in default location
64
REM  #    Visual Studio 7       - Assumed to be installed in default location
65
REM  #
66
set LIB=
67
set INCLUDE=
68
 
69
REM  # Setup for a Microtec C compiler
70
REM  # for the 68K compiler and the ColdFire processors
71
REM  # Note: Version-specific compilers use variables of the form
72
REM  #       MRI_68Kxx or MRI_CFxx where xx is a version identifier
73
REM  #
74
set  MRI_68K=c:\microtec
75
set  MRI_CF=c:\MGC
76
set  VISIONCLICK=c:\ESTII
77
 
78
REM set MRI_68K45=c:\microtek_4.5R
79
 
80
 
81
REM  # GnuPro-H8
82
set GNUPROH8=C:\GnuProH8
83
 
84
REM # Lint related
85
set PCLINT=z:\DPG_SWBase\tools\lint
86
REM set LINTPACKAGE=1
87
 
88
REM #Keil Compiler
89
set KEILC51=c:\Keil\C51v41
283 dpurdie 90
REM set KEILMDK_ARM340=C:\Keil\ARM
327 dpurdie 91
REM set KEILMDK_ARM43A=C:\Keil\4.03a\ARM
227 dpurdie 92
 
327 dpurdie 93
 
227 dpurdie 94
REM #M16c (MCR compiler)
95
set MTOOL=c:\MTOOL
96
 
97
REM #Atmel Compiler
98
set GBE_AVR_IAR=C:\Program Files\IAR Systems\Embedded Workbench 4.0
99
 
235 dpurdie 100
REM #Borland CBuilder6
101
REM # BCB Must not have spaces in it
331 dpurdie 102
REM # Preferred install directory is:
103
REM set c:\BCB6\CBuilder6
235 dpurdie 104
 
289 dpurdie 105
REM #Borland Delphi7
106
REM # DELPHI7 Must not have spaces in it
107
REM set DELPHI7=c:\PROGRA~1\Borland\Delphi7
108
 
227 dpurdie 109
REM # Java Versions
110
set JAVA_HOME_1_4=C:\j2sdk1.4.2_04
111
set JAVA_HOME_1_5=C:\Program Files\Java\jdk1.5.0_09
112
set JAVA_HOME_1_6=C:\Program Files\Java\jdk1.6.0_01
113
 
114
REM # Default Java version to use if none is specified
115
REM # This may be set globablly
116
REM set JAVA_HOME=%JAVA_HOME_1_4%
117
REM set JAVA_HOME=%JAVA_HOME_1_5%
118
REM set JAVA_HOME=%JAVA_HOME_1_6%
119
 
120
REM # Ant Version
121
REM # This may be set globablly
122
REM set ANT_HOME=C:\apache-ant-1.6.5
123
 
124
REM # Release Manager configuration
125
REM # Essential for ABT use. Normally optional
126
REM # Normally set globaly on a 'BuildMachine'
127
 
287 dpurdie 128
if "%GBE_RM_LOCATION%"=="" set GBE_RM_LOCATION=jdbc:oracle:thin:@auperaprm01:1521:RELEASEM
289 dpurdie 129
if "%GBE_RM_USERNAME%"=="" set GBE_RM_USERNAME=MS_READONLY
130
if "%GBE_RM_PASSWORD%"=="" set GBE_RM_PASSWORD=MS_READONLY
387 dpurdie 131
if "%GBE_RM_URL%"==""      set GBE_RM_URL=http://bms:8002/ManagerSuite/Release_Manager
287 dpurdie 132
if "%GBE_DM_LOCATION%"=="" set GBE_DM_LOCATION=%GBE_RM_LOCATION%
289 dpurdie 133
if "%GBE_DM_USERNAME%"=="" set GBE_DM_USERNAME=%GBE_RM_USERNAME%
134
if "%GBE_DM_PASSWORD%"=="" set GBE_DM_PASSWORD=%GBE_RM_PASSWORD%
387 dpurdie 135
if "%GBE_DM_URL%"==""      set GBE_DM_URL=http://bms:8002/ManagerSuite/Deployment_Manager
287 dpurdie 136
 
361 dpurdie 137
REM SubVersion Support
297 dpurdie 138
REM set GBE_SVN_USERNAME=
139
REM set GBE_SVN_PASSWORD=
379 dpurdie 140
if "%GBE_SVN_PATH%"==""            set GBE_SVN_PATH=c:/Program Files/TortoiseSVN/bin
385 dpurdie 141
if "%GBE_SVN_URL_AUPERASVN01%"=="" set GBE_SVN_URL_AUPERASVN01=https://auperasvn01.aupera.erggroup.com/svn
1328 dpurdie 142
if "%GBE_SVN_URL_FRBESASVN01%"=="" set GBE_SVN_URL_FRBESASVN01=http://frbesasvn01.frbesa.erggroup.com/svn
353 dpurdie 143
if "%GBE_SVN_URL%"==""             set GBE_SVN_URL=%GBE_SVN_URL_AUPERASVN01%
297 dpurdie 144
 
227 dpurdie 145
REM............... Internal Use. Do not modify............................#
146
REM
147
set  PERL5LIB=
148
set  GBE_BIN=
149
set  GBE_TOOLS=
150
set  GBE_CONFIG=
151
set  GBE_SCRIPT=%~f0% : %*%
152
 
153
REM
154
REM     Start the JATS wrapper script passing all the user options
155
%GBE_PERL% %GBE_CORE%\TOOLS\jats.pl %*%