File: install_debug_symbols_sh.txt

package info (click to toggle)
fis-gtm 7.0-005-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,264 kB
  • sloc: ansic: 336,687; asm: 5,184; csh: 4,823; sh: 1,945; awk: 291; makefile: 72; sed: 13
file content (63 lines) | stat: -rw-r--r-- 1,487 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
#################################################################
#								#
# Copyright (c) 2017 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.	#
#								#
#################################################################

# Check installing as root

uid=`id -u`

if [ "$uid" -ne 0 ]; then
	echo "$0 must be run as root"
	exit 1
fi

# Check valid package

package_dir=`dirname $0`
if [ "$package_dir" = "" ]; then
	package_dir="."
fi

if [ ! -f "${package_dir}/mumps.debug" ]; then
	echo "mumps.debug not found in package directory (${package_dir})"
	exit 1
fi

# Check valid $gtm_dist

if [ ! -d "$gtm_dist" ]; then
	echo "gtm_dist ($gtm_dist) is not a valid directory"
	exit 1
fi
if [ ! -x "$gtm_dist/mumps" ]; then
	echo "gtm_dist ($gtm_dist) is not a GT.M installation"
	exit 1
fi

# Confirm installation

echo ""
echo "Installing debug symbols to $gtm_dist"
echo ""
printf "Proceed? > "
read resp
response=$(echo "$resp" | tr '[a-z]' '[A-Z]')
if [ "Y" != "$response" -a "YES" != "$response" ] ; then
	exit 1
fi

# Do the copy

cp ${package_dir}/*.debug $gtm_dist/
ls -ald $gtm_dist/*.debug
echo ""
echo "Done. Please check the permissions on the listed files and change them as appropriate."