diff options
| author | tv <tv@also> | 2011-01-02 21:44:07 +0100 | 
|---|---|---|
| committer | tv <tv@also> | 2011-01-02 21:44:07 +0100 | 
| commit | fdb04ffa08db9b571b04ef3c07309c051183493d (patch) | |
| tree | 1326c8b4523073035b241f984379d69c02653bc9 | |
| parent | 45599b0bfd0612de2023b3b329cd7eebda0bc27c (diff) | |
| parent | 3e4bc770f2db263497ac60197932294d0acc0d8a (diff) | |
Merge ssh://telnet/~/noise
| -rwxr-xr-x | modules/stream | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/stream b/modules/stream index fa5a2d6e..1e6fd0c5 100755 --- a/modules/stream +++ b/modules/stream @@ -1,16 +1,17 @@  #! /bin/sh  inputdir=$HOME/noise/streams +basename="`basename "$0"`"  case "$1" in    (--help)      if echo "$0 $*" | grep -q '[[:space:]]--verbose\>'; then -  echo -e "\x1B[35mtype \x1B[32m/espeak off \x1B[35mto turn stream off\x1B[m" +  echo -e "\x1B[35mtype \x1B[32m/$basename off \x1B[35mto turn stream off\x1B[m"        for i in `ls $inputdir` ; do  	filename="$inputdir/$i"  	shortcut=`xmlstarlet sel -t -v /station/@shortcut "$inputdir/$i"`  	title=`xmlstarlet sel -t -v /station/@title "$inputdir/$i"`  	topic=`xmlstarlet sel -t -v /station/@topic "$inputdir/$i"`  	stream=`xmlstarlet sel -t -v /station/@stream "$inputdir/$i"` -  echo -e "\x1B[35mtype \x1B[32m/espeak $shortcut \x1B[35mfor $topic\x1B[m" +  echo -e "\x1B[35mtype \x1B[32m/$basename $shortcut \x1B[35mfor $topic\x1B[m"        done      else        echo "play an audio stream"  | 
