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
|
#!/bin/bash
# Author: <github.com/tvraman> License: GPL
# Usage: ./bootstrap [version]
# On a well-installed Linux system,
# This should let a user bootstrap into a talking Emacs.
# Not intended for daily use.
# Prerequisites: espeak, libespeak libespeak-dev
# libespeak-ng-libespeak-dev libespeak-ng-dev espeak-ng-espeak
# Downloads, builds and runs specified version.
latest=48.0
v=$1
if [ ! -n "$1" ]
then
v=$latest
fi
u="https://github.com/tvraman/emacspeak/releases/download/${v}/emacspeak-${v}.tar.bz2"
# Download and unpack if needed:
if [ ! -d "emacspeak-$v" ]
then
wget $u;
tar xfj "emacspeak-${v}.tar.bz2"
fi
# Build it:
cd "emacspeak-${v}"
make config && make
(cd servers/linux-espeak && make )
#Run out of this directory.
# Default to using espeak unless DTK_PROGRAM is set.
#
:${DTK_PROGRAM} ? "Using ${DTK_PROGRAM}" : export DTK_PROGRAM="espeak"
emacs -q -l ./lisp/emacspeak-setup.el -l $HOME/.emacs
|