cos
author Stiletto <blasux@blasux.ru>
Thu, 22 Sep 2011 13:27:23 +0400
changeset 9 ae87469781f2
parent 8 c9b4af5f3122
permissions -rwxr-xr-x
CUE extractor
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
9
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 8
diff changeset
     7
    "")
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 8
diff changeset
     8
        echo "Usage: $0 <command> [parameters]"
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 8
diff changeset
     9
        ;;
8
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    10
    "xmms")
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    11
        $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
    12
        ;;
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    13
    *)
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    14
        $COSPATH/cos-"$S" $COSPATH/fuck "$@"
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    15
        ;;
c9b4af5f3122 cos hellper script
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    16
esac