forked from brltty/brltty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrltty-config.sh.in
131 lines (112 loc) · 5.06 KB
/
brltty-config.sh.in
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
#!/bin/sh
# @configure_input@
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
# text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2023 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://brltty.app/
#
# This software is maintained by Dave Mielke <[email protected]>.
###############################################################################
brlttyConfig_assignVariable() {
eval "${1}"'="${2}"'
}
brlttyConfig_defineVariable() {
local name="${1}"
local value="${2}"
while true
do
eval local 'new="'${value}'"'
[ "${new}" != "${value}" ] || break
value="${new}"
done
brlttyConfig_assignVariable "${name}" "${value}"
}
brlttyConfig_defineVariables() {
local prefix='@prefix@'
local sysconfdir='@sysconfdir@'
local datarootdir='@datarootdir@'
local datadir='@datadir@'
local sharedstatedir='@sharedstatedir@'
local localstatedir='@localstatedir@'
local includedir='@includedir@'
local oldincludedir='@oldincludedir@'
local exec_prefix='@exec_prefix@'
local bindir='@bindir@'
local sbindir='@sbindir@'
local libdir='@libdir@'
local libexecdir='@libexecdir@'
local localedir='@localedir@'
local mandir='@mandir@'
local docdir='@docdir@'
local infodir='@infodir@'
local htmldir='@htmldir@'
local pdfdir='@pdfdir@'
local psdir='@psdir@'
local dvidir='@dvidir@'
local PACKAGE_TARNAME='@PACKAGE_TARNAME@'
local PACKAGE_NAME='@PACKAGE_NAME@'
local PACKAGE_VERSION='@PACKAGE_VERSION@'
local PACKAGE_URL='@PACKAGE_URL@'
local PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
local execute_root='@execute_root@'
local program_directory='@program_directory@'
local drivers_directory='@drivers_directory@'
local tables_directory='@tables_directory@'
local updatable_directory='@updatable_directory@'
local writable_directory='@writable_directory@'
local manpage_directory='@manpage_directory@'
local include_directory='@include_directory@'
local privilege_parameters='@privilege_parameters@'
local api_version='@api_version@'
local api_release='@api_release@'
local api_authkeyfile='@api_authkeyfile@'
brlttyConfig_defineVariable BRLTTY_PREFIX "${prefix}"
brlttyConfig_defineVariable BRLTTY_SYSCONFDIR "${sysconfdir}"
brlttyConfig_defineVariable BRLTTY_DATAROOTDIR "${datarootdir}"
brlttyConfig_defineVariable BRLTTY_DATADIR "${datadir}"
brlttyConfig_defineVariable BRLTTY_SHAREDSTATEDIR "${sharedstatedir}"
brlttyConfig_defineVariable BRLTTY_LOCALSTATEDIR "${localstatedir}"
brlttyConfig_defineVariable BRLTTY_INCLUDEDIR "${includedir}"
brlttyConfig_defineVariable BRLTTY_OLDINCLUDEDIR "${oldincludedir}"
brlttyConfig_defineVariable BRLTTY_EXEC_PREFIX "${exec_prefix}"
brlttyConfig_defineVariable BRLTTY_BINDIR "${bindir}"
brlttyConfig_defineVariable BRLTTY_SBINDIR "${sbindir}"
brlttyConfig_defineVariable BRLTTY_LIBDIR "${libdir}"
brlttyConfig_defineVariable BRLTTY_LIBEXECDIR "${libexecdir}"
brlttyConfig_defineVariable BRLTTY_LOCALEDIR "${localedir}"
brlttyConfig_defineVariable BRLTTY_MANDIR "${mandir}"
brlttyConfig_defineVariable BRLTTY_INFODIR "${infodir}"
brlttyConfig_defineVariable BRLTTY_DOCDIR "${docdir}"
brlttyConfig_defineVariable BRLTTY_HTMLDIR "${htmldir}"
brlttyConfig_defineVariable BRLTTY_PDFDIR "${pdfdir}"
brlttyConfig_defineVariable BRLTTY_PSDIR "${psdir}"
brlttyConfig_defineVariable BRLTTY_DVIDIR "${dvidir}"
brlttyConfig_defineVariable BRLTTY_TARNAME "${PACKAGE_TARNAME}"
brlttyConfig_defineVariable BRLTTY_NAME "${PACKAGE_NAME}"
brlttyConfig_defineVariable BRLTTY_VERSION "${PACKAGE_VERSION}"
brlttyConfig_defineVariable BRLTTY_URL "${PACKAGE_URL}"
brlttyConfig_defineVariable BRLTTY_BUGREPORT "${PACKAGE_BUGREPORT}"
brlttyConfig_defineVariable BRLTTY_ROOT "${execute_root}"
brlttyConfig_defineVariable BRLTTY_PROGRAMS_DIRECTORY "${program_directory}"
brlttyConfig_defineVariable BRLTTY_DRIVERS_DIRECTORY "${drivers_directory}"
brlttyConfig_defineVariable BRLTTY_TABLES_DIRECTORY "${tables_directory}"
brlttyConfig_defineVariable BRLTTY_UPDATABLE_DIRECTORY "${updatable_directory}"
brlttyConfig_defineVariable BRLTTY_WRITABLE_DIRECTORY "${writable_directory}"
brlttyConfig_defineVariable BRLTTY_MANPAGE_DIRECTORY "${manpage_directory}"
brlttyConfig_defineVariable BRLTTY_INCLUDE_DIRECTORY "${include_directory}"
brlttyConfig_defineVariable BRLTTY_PRIVILEGE_PARAMETERS "${privilege_parameters}"
brlttyConfig_defineVariable BRLAPI_VERSION "${api_version}"
brlttyConfig_defineVariable BRLAPI_RELEASE "${api_release}"
brlttyConfig_defineVariable BRLAPI_KEY_FILE "${sysconfdir}/${api_authkeyfile}"
}
brlttyConfig_defineVariables