cos
author Stiletto <blasux@blasux.ru>
Sat, 18 Jun 2011 16:12:00 +0400
changeset 8 c9b4af5f3122
child 9 ae87469781f2
permissions -rwxr-xr-x
cos hellper script
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     1
#!/bin/sh
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     2
COSPATH=$(dirname $(readlink -f $0))
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     3
#/home/archhome/stil/git/crockofshit
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     4
S="$1"
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     5
shift
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     6
case "$S" in
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     7
    "xmms")
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     8
        $COSPATH/cos-search $COSPATH/fuck "$@"|cut -f2|while read fname; do echo "$fname"; xmmsctrl +file "$fname"; done
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     9
        ;;
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    10
    *)
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    11
        $COSPATH/cos-"$S" $COSPATH/fuck "$@"
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    12
        ;;
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    13
esac