]> git.pld-linux.org Git - packages/emacspeak.git/blame - emacspeak-emacspeak.sh.patch
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
[packages/emacspeak.git] / emacspeak-emacspeak.sh.patch
CommitLineData
176d893c 1--- emacspeak-24.0/etc/emacspeak.sh.def 2006-05-03 04:54:03.000000000 +0200
2+++ n.emacspeak-24.0/etc/emacspeak.sh.def 2006-09-17 13:04:14.000000000 +0200
3@@ -1,35 +1,25 @@
4 #!/bin/sh
5 # emacspeak - execute emacs with speech enhancements
6-#$Id$
7- if [ -f /etc/emacspeak.conf ]
8- then
9- . /etc/emacspeak.conf
10-fi
11-
12-if [ -f $HOME/.emacs ]
13-then
14- INITSTR="-l $HOME/.emacs"
15-fi
16+[ -f /etc/emacspeak.conf ] && . /etc/emacspeak.conf
17+[ -z "$EMACS_BIN" ] && EMACS_BIN=/usr/bin/emacs
18
19 CL_ALL=""
20 for CL in $* ; do
21 if [ "$CL" = "-o" ]; then
22 DTK_PROGRAM=stereo-outloud
23- export DTK_PROGRAM
24 elif [ "$CL" = "-m" ]; then
25 DTK_PROGRAM=multispeech
26- export DTK_PROGRAM
27 elif [ "$CL" = "-d" ]; then
28 DTK_PROGRAM=dtk-soft
29- export DTK_PROGRAM
30- elif [ "$CL" = "-q" ]; then
31- INITSTR=""
32 else
33 CL_ALL="$CL_ALL $CL"
34 fi
35 done
36
37+export DTK_PROGRAM DTK_PORT DTK_DEVICE EMACS_BIN
38+[ -n "$DTK_TCL" ] && export DTK_TCL
39
40 EMACS_UNIBYTE=1
41 export EMACS_UNIBYTE
42-exec emacs -q -l <emacspeak-dir>/emacspeak-setup.el $INITSTR $CL_ALL
43+
44+exec $EMACS_BIN -l /usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.el $CL_ALL
This page took 0.098621 seconds and 4 git commands to generate.