Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tvraman
Last active November 16, 2016 03:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvraman/08046e9befd9755dc05282ae5c8d32f5 to your computer and use it in GitHub Desktop.
Save tvraman/08046e9befd9755dc05282ae5c8d32f5 to your computer and use it in GitHub Desktop.
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