Last active
November 16, 2016 03:53
-
-
Save tvraman/08046e9befd9755dc05282ae5c8d32f5 to your computer and use it in GitHub Desktop.
Bootstrap into a running Emacspeak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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