| 1 | #!/bin/bash |
| 2 | ############################################################################### |
| 3 | # BRLTTY - A background process providing access to the console screen (when in |
| 4 | # text mode) for a blind person using a refreshable braille display. |
| 5 | # |
| 6 | # Copyright (C) 1995-2026 by The BRLTTY Developers. |
| 7 | # |
| 8 | # BRLTTY comes with ABSOLUTELY NO WARRANTY. |
| 9 | # |
| 10 | # This is free software, placed under the terms of the |
| 11 | # GNU Lesser General Public License, as published by the Free Software |
| 12 | # Foundation; either version 2.1 of the License, or (at your option) any |
| 13 | # later version. Please see the file LICENSE-LGPL for details. |
| 14 | # |
| 15 | # Web Page: http://brltty.app/ |
| 16 | # |
| 17 | # This software is maintained by Dave Mielke <[email protected]>. |
| 18 | ############################################################################### |
| 19 | |
| 20 | . "`dirname "${0}"`/prologue.sh" |
| 21 | command=brltty |
| 22 | |
| 23 | handleInitialHelpOption "${@}" <<END-OF-HELP |
| 24 | Run ${command} from within its build tree. |
| 25 | |
| 26 | Syntax: ${programName} {-h | [-option ...]} |
| 27 | |
| 28 | All of the options are passed through to ${command} itself. |
| 29 | To see its usage summary, use its --help long option. |
| 30 | |
| 31 | See run-command -h for more details. |
| 32 | END-OF-HELP |
| 33 | |
| 34 | setSourceRoot |
| 35 | setBuildRoot |
| 36 | |
| 37 | export BRLTTY_TABLES_DIRECTORY="${sourceRoot}/Tables" |
| 38 | export BRLTTY_DRIVERS_DIRECTORY="${buildRoot}/lib" |
| 39 | export BRLTTY_LOCALE_DIRECTORY="${buildRoot}/Messages/locale" |
| 40 | |
| 41 | exec "${programDirectory}/run-command" "${command}" -E "${@}" |
| 42 | exit "${?}" |