|
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 | |
|---|
| 10 | set U='Incoming site' |
|---|
| 11 | set C='Incoming chat' |
|---|
| 12 | set F='Incoming File' |
|---|
| 13 | set O='Say hi to your friend' |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | if ($1 == "u") then |
|---|
| 17 | echo $U >> /dev/speech |
|---|
| 18 | endif |
|---|
| 19 | |
|---|
| 20 | if ($1 == "o") then |
|---|
| 21 | echo $O >> /dev/speech |
|---|
| 22 | endif |
|---|
| 23 | |
|---|
| 24 | if ($1 == "c") then |
|---|
| 25 | echo $C >> /dev/speech |
|---|
| 26 | endif |
|---|
| 27 | |
|---|
| 28 | if ($1 == "f") then |
|---|
| 29 | echo $F >> /dev/speech |
|---|
| 30 | endif |
|---|
| 31 | |
|---|
| 32 | @ j=1 |
|---|
| 33 | while ( $j <= 5000 ) |
|---|
| 34 | @ j = $j + 1 |
|---|
| 35 | end |
|---|
| 36 | |
|---|
| 37 | if ($1 == "m") then |
|---|
| 38 | set plain = `ls -t -r $HOME/.licq/history|tail -n1` |
|---|
| 39 | set h = 0 |
|---|
| 40 | set i = 30 |
|---|
| 41 | while ( $i > 0 ) |
|---|
| 42 | @ i = $i - 1 |
|---|
| 43 | set number = `tail -n$i $HOME/.licq/history/$plain| grep "\[ R |" | wc -l` |
|---|
| 44 | if ($number == 0) then |
|---|
| 45 | @ h = $i |
|---|
| 46 | @ i = 0 |
|---|
| 47 | endif |
|---|
| 48 | end |
|---|
| 49 | tail -n$h $HOME/.licq/history/$plain |cut -c2-1000 >>/dev/speech |
|---|
| 50 | endif |
|---|
| 51 | |
|---|
| 52 | if ($1 == "s") then |
|---|
| 53 | set plain = `ls -t -r $HOME/.licq/history|tail -n1` |
|---|
| 54 | set h = 0 |
|---|
| 55 | set i = 30 |
|---|
| 56 | while ( $i > 0 ) |
|---|
| 57 | @ i = $i - 1 |
|---|
| 58 | set number = `tail -n$i $HOME/.licq/history/$plain| grep "\[ R |" | wc -l` |
|---|
| 59 | if ($number == 0) then |
|---|
| 60 | @ h = $i |
|---|
| 61 | @ i = 0 |
|---|
| 62 | endif |
|---|
| 63 | end |
|---|
| 64 | tail -n$h $HOME/.licq/history/$plain |cut -c2-1000 >>/dev/speech |
|---|
| 65 | endif |
|---|
| 66 | |
|---|