Create a gist now

Instantly share code, notes, and snippets.

Bootstrap into a running Emacspeak
#!/bin/bash
# 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
# Downloads, builds and runs specified version.
v=$1
if [ ! -n "$1" ]
then
v=44.0
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 )
echo `pwd`
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment