-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathshowconfig.sh
135 lines (95 loc) · 3.13 KB
/
showconfig.sh
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/sh
### showconfig.sh -- A short program displaying its configuration
# Author: Michael Grünewald
# Date: Fri Nov 21 21:03:03 CET 2014
# BSD Owl Scripts (https://github.com/michipili/bsdowl)
# This file is part of BSD Owl Scripts
#
# Copyright © 2002–2017 Michael Grünewald. All Rights Reserved.
#
# This file must be used under the terms of the BSD license.
# This source file is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
# We implement symbolic directory names following the GNU coding
# standards. Most of the comments are citations from the GNU coding
# standards:
#
# The GNU coding standards, last updated September 13, 2013.
# http://www.gnu.org/prep/standards/html_node/index.html
### IMPLEMENTATION
# These first two variables set the root for the installation. All the
# other installation directories should be subdirectories of one of
# these two, and nothing should be directly installed into these two
# directories.
PACKAGE='@PACKAGE@'
# prefix
# Installation prefix for machine independant files
: ${prefix:=@prefix@}
# exec_prefix
# Installation prefix for machine dependant data
: ${exec_prefix:=@exec_prefix@}
# bindir
# Destination of executable programs that users can run
: ${bindir:=@bindir@}
# sbindir
# Destination of executable programs that admins can run
: ${sbindir:=@sbindir@}
# libexecdir
# Destination for programs to be run by other programs
: ${libexecdir:=@libexecdir@/${PACKAGE}}
# datarootdir
# Subsystem where machine-independant files are stored
#
# This variable is useful to define mandir, etc. but not on its own.
: ${datarootdir:=@datarootdir@}
# datadir
# Destination of idiosyncratic read-only architecture-independent data files
: ${datadir:=@datarootdir@/${PACKAGE}}
# sysconfdir
# Destination of read-only data files that pertain to a single machine
#
# To put it another way, this is where host-specific configuration
# should go.
: ${sysconfidr:=@sysconfdir@}
# sharedstatedir
# Destination of host-independent files holding program state
: ${sharedstatedir:=@sharedstatedir@/${PACKAGE}}
# localstatedir
# Destination of host-specific files holding program state
: ${localstatedir:=@localstatedir@/${PACKAGE}}
# runstatedir
# Destination of host-specific files holding volatile program state
: ${runstatedir:=@runstatedir@/${PACKAGE}}
# docdir
# Destination of documentation files
#
# This is not for info files, that are stored somewhere else.
: ${docdir:=@docdir@}
# infodir
# Destination of info files
: ${infodir:=@infodir@}
# libdir
# Destination of object files and libraries of object code
: ${libdir:=@libdir@}
# localedir
# Destination of locale-specific message catalogs
: ${localedir:=@localedir@}
cat <<EOF
PACKAGE=${PACKAGE}
prefix=${prefix}
exec_prefix=${exec_prefix}
bindir=${bindir}
sbindir=${sbindir}
libexecdir=${libexecdir}
datarootdir=${datarootdir}
datadir=${datadir}
sysconfidr=${sysconfidr}
sharedstatedir=${sharedstatedir}
localstatedir=${localstatedir}
runstatedir=${runstatedir}
docdir=${docdir}
infodir=${infodir}
libdir=${libdir}
localedir=${localedir}
EOF
### End of file `showconfig.sh'