File: install.sh

package info (click to toggle)
screader 1.8-5.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,048 kB
  • ctags: 1,394
  • sloc: ansic: 21,587; sh: 1,128; makefile: 147
file content (73 lines) | stat: -rwxr-xr-x 1,964 bytes parent folder | download | duplicates (4)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/sh

# Screader - screen reader for Linux install script.
# (C)1999 J. Lemmens

# Screader only works on Linux version 1.1.92 or later.

# Login as root for best results.
echo -e "\n\n-----------------------------------------------------------------"
if [ ! $LOGNAME = root ];then
   echo "Please change to user root."
   exit 1
fi

# Make a directory /opt/etc/screader.
test ! -d /opt && ln -s /usr/local /opt
test ! -d /opt/etc && mkdir /opt/etc
test ! -d /opt/etc/screader && mkdir /opt/etc/screader

# Copy all punctuation.?.sh and the tts files to /opt/etc/screader.
cp tts /opt/etc/screader
cp punctuation.1.sh.english /opt/etc/screader/punctuation.1.sh

# Place the manual in the man-directory.
gzip -9f screader.1
cp screader.1.gz /opt/man/man1

# Place the binary in the bin-directory and give it the set-user-id.
test ! -d /opt/bin && mkdir /opt/bin
cp screader /opt/bin
chmod u+s /opt/bin/screader

# Make vcs device.
# Script by Jakub Jelinek
#
if [ ! -e /dev/vcs0 ]; then
   I=0
   while [ $I -lt 10 ]; do
      mknod /dev/vcs$I c 7 $I
      chmod 622 /dev/vcs$I
      chown root.tty /dev/vcs$I
      mknod /dev/vcsa$I c 7 `expr $I + 128`
      chmod 622 /dev/vcsa$I
      chown root.tty /dev/vcsa$I
      I=`expr $I + 1`
   done
fi

# Place the say synth into /opt/bin.
# rsynth: version 1.13 1994/11/08
cp say /opt/bin

# number2ascii reads Arabic numerals from standard input and converts them
# into English or Dutch.
#
# The english version:
# Copyright (c) 1988, 1993, 1994
# The Regents of the University of California.
#
# The dutch version (C)1999 J. Lemmens
cp number2ascii /opt/bin

cat << EOF
The screader screen reader has been installed.
Now type screader to start the screen reader.

Screader can  be placed into the ~/.login file (for tcsh) or into
the ~/.profile (for sh) file for automatic startup of screadr. each time
you login.

Edit the /opt/etc/screader/tts file to let screader use your favorite
speech synthesizer.
EOF