File: gtmsrc.csh

package info (click to toggle)
fis-gtm 6.3-007-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,284 kB
  • sloc: ansic: 328,861; asm: 5,182; csh: 5,102; sh: 1,918; awk: 291; makefile: 69; sed: 13
file content (103 lines) | stat: -rwxr-xr-x 3,721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#################################################################
#								#
# Copyright (c) 2001-2016 Fidelity National Information		#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

#
###########################################################################################
#
#	gtmsrc.csh - release-specific definitions
#
#	gtmsrc.csh is an auxiliary shell script invoked by setactive.csh to define release-
#	specific environment variables and aliases for this release.  (The original version
#	of this file just defined release-specific source directories, hence the name.)
#	For most releases, this is straightforward, but incremental releases require the
#	specification of the release(s) upon which the current increment is based.
#
#	This script defines the following environment variables:
#
#		gtm_inc		- pathname of source directory containing C and assembly
#				  language header files (*.h and, usually, *.si)
#
#		gtm_pct		- pathname of source directory containing all of the GT.M
#				  sources for GDE and the percent utilities and the
#				  sources for the GT.M runtime help facility
#
#		gtm_src		- pathname of source directory containing the C and
#				  assembly language sources
#
#		gtm_tools	- pathname of source directory containing everything else
#				  (shell scripts and their corresponding input files, awk
#				  and sed programs, installation scripts, etc.) used in
#				  building or maintaining GT.M
#
#		gtmroutines	- pathname for GT.M to lookup M sources and object files
#
#		gt_as_option_I	- assembler option(s) specifying the location(s) of the
#				  assembly language header files (usually *.si)
#
#		gt_cc_option_I	- C compiler option(s) specifying the location(s) of the C
#				  header files (*.h)
#
###########################################################################################
#

# Define useful env vars
setenv gtm_inc	"$gtm_vrt/inc"
setenv gtm_pct	"$gtm_vrt/pct"
setenv gtm_src	"$gtm_vrt/src"
setenv gtm_tools	"$gtm_vrt/tools"

if !($?gtmroutines) then
	setenv gtmroutines ""
endif
# Check for utf8 mode two ways, 1) by gtm_chset and 2) by active routines
set utf = ""
if ($?gtm_chset) then
	if ("UTF-8" == "$gtm_chset") set utf="/utf8"
else if ("utf8" == "$gtm_exe:t") then
	set utf="/utf8"
endif
# Rebuild gtmroutines while trying to preserve the old value.
set rtns = ($gtmroutines:x)
if (0 < $#rtns) then
	@ rtncnt = $#rtns
	# Strip off "$gtm_exe/plugin/o($gtm_exe/plugin/r)" if present; assumption, it's at the end
	if ("$rtns[$rtncnt]" =~ "*/plugin/o*(*/plugin/r)") @ rtncnt--
	# Strip off "$gtm_exe"; assumption, it's next to last or the last
	if ("${rtns[$rtncnt]:s;/utf8;;:s;*;;}" == "${gtmsrc_last_exe:s;/utf8;;:s;*;;}") @ rtncnt--
	setenv gtmroutines "$rtns[-$rtncnt]"
	unset rtncnt
else
	setenv gtmroutines "."
endif
if (-d $gtm_exe/plugin/o && -d $gtm_exe/plugin/r) then
	setenv gtmroutines "$gtmroutines $gtm_exe$utf $gtm_exe/plugin/o$utf($gtm_exe/plugin/r)"
else
	setenv gtmroutines "$gtmroutines $gtm_exe$utf"
endif
setenv gtmsrc_last_exe	$gtm_exe
unset rtns
unset utf8

setenv	gtm_version_change	`date`
source $gtm_tools/gtm_env.csh
unsetenv gtm_version_change

if !($?gt_as_option_I) then
	setenv	gt_as_option_I	"-I$gtm_inc"
else
	setenv	gt_as_option_I	"$gt_as_option_I -I$gtm_inc"
endif
if !($?gt_cc_option_I) then
	setenv	gt_cc_option_I	"-I$gtm_inc"
else
	setenv	gt_cc_option_I	"$gt_cc_option_I -I$gtm_inc"
endif