| 1 |
#!/bin/sh |
| 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}"`/brltty-prologue.sh" |
| 21 |
|
| 22 |
[ "${#}" -eq 0 ] && syntaxError "missing source root." |
| 23 |
sourceRoot="${1}" |
| 24 |
shift |
| 25 |
cd "${sourceRoot}" || exit "${?}" |
| 26 |
sourceRoot="`pwd`" |
| 27 |
|
| 28 |
if [ "${#}" -eq 0 ] |
| 29 |
then |
| 30 |
archiveName="`basename "${sourceRoot}"`" |
| 31 |
else |
| 32 |
archiveName="${1}" |
| 33 |
shift |
| 34 |
fi |
| 35 |
|
| 36 |
if [ "${#}" -eq 0 ] |
| 37 |
then |
| 38 |
archiveFile="${archiveName}.zip" |
| 39 |
else |
| 40 |
archiveFile="${1}" |
| 41 |
shift |
| 42 |
fi |
| 43 |
[ "${archiveFile#/}" = "${archiveFile}" ] && archiveFile="${initialDirectory}/${archiveFile}" |
| 44 |
|
| 45 |
[ "${#}" -eq 0 ] || syntaxError "too many parameters." |
| 46 |
|
| 47 |
needTemporaryDirectory |
| 48 |
set -e |
| 49 |
|
| 50 |
buildRoot="${temporaryDirectory}/build" |
| 51 |
cp -p -r -- "${sourceRoot}" "${buildRoot}" |
| 52 |
cd "${buildRoot}" |
| 53 |
|
| 54 |
installRoot="${temporaryDirectory}/${archiveName}" |
| 55 |
"./configure" --quiet --host=mingw32 --prefix="${installRoot}" --enable-relocatable-install --without-libbraille --without-flite --without-mikropuhe --without-speechd --without-swift --without-theta |
| 56 |
make -s |
| 57 |
make -s install |
| 58 |
|
| 59 |
cd .. |
| 60 |
zip -q -A -r "${archiveFile}" "${archiveName}" |
| 61 |
exit 0 |