root/trunk/licq/bin/licq-speechd

Revision 4526, 1.4 kB (checked in by erijo, 2 years ago)

Removed svn:keywords from all files that don't need it. May make your
checkout a tiny bit faster :)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/csh
2# This script is designed to work with Licq and Speechd
3# You must copy the script to the /usr/bin directory.
4# You must also go under icq options and type licq-talk
5# under command, m under message, u under url, c under chat
6# o under online notify and s under system message
7# for the lates version goto www.bostononcampus.com/licqtalk
8# Written  by Joseph Harth 18657727
9
10set U='Incoming site'
11set C='Incoming chat'
12set F='Incoming File'
13set O='Say hi to your friend'
14
15
16if ($1 == "u") then
17echo $U >> /dev/speech
18endif
19
20if ($1 == "o") then
21echo $O >> /dev/speech
22endif
23
24if ($1 == "c") then
25echo $C >> /dev/speech
26endif
27
28if ($1 == "f") then
29echo $F >> /dev/speech
30endif
31
32@ j=1
33while ( $j <= 5000 )
34  @ j = $j + 1
35end
36
37if ($1 == "m") then
38set plain = `ls -t -r $HOME/.licq/history|tail -n1`
39set h = 0
40set i = 30
41while ( $i > 0 )
42  @ i = $i - 1
43set number = `tail -n$i $HOME/.licq/history/$plain| grep "\[ R |" | wc -l`
44if ($number == 0) then
45  @ h = $i
46  @ i = 0 
47endif
48end 
49tail -n$h $HOME/.licq/history/$plain |cut -c2-1000 >>/dev/speech
50endif
51
52if ($1 == "s") then
53set plain = `ls -t -r $HOME/.licq/history|tail -n1`
54set h = 0
55set i = 30
56while ( $i > 0 )
57  @ i = $i - 1
58set number = `tail -n$i $HOME/.licq/history/$plain| grep "\[ R |" | wc -l`
59if ($number == 0) then
60  @ h = $i
61  @ i = 0 
62endif
63end 
64tail -n$h $HOME/.licq/history/$plain |cut -c2-1000 >>/dev/speech
65endif
66
Note: See TracBrowser for help on using the browser.