HCoop
/
clinton
/
abcde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial `abcddb-tool parse' command
[clinton/abcde.git]
/
cddb-tool
diff --git
a/cddb-tool
b/cddb-tool
index
4e6c81b
..
1833986
100755
(executable)
--- a/
cddb-tool
+++ b/
cddb-tool
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
# Copyright (C) 1999 Nathaniel Smith <njs@uclink4.berkeley.edu>
# Copyright (C) 1999, 2000, 2001 Robert Woodcock <rcw@debian.org>
# Copyright (C) 1999 Nathaniel Smith <njs@uclink4.berkeley.edu>
# Copyright (C) 1999, 2000, 2001 Robert Woodcock <rcw@debian.org>
@@
-6,9
+6,9
@@
# This code is hereby licensed for public consumption under either the
# GNU GPL v2 or greater, or Larry Wall's Artistic License - your choice.
#
# This code is hereby licensed for public consumption under either the
# GNU GPL v2 or greater, or Larry Wall's Artistic License - your choice.
#
-# You should have rec
ie
ved a copy of the GNU General Public License
+# You should have rec
ei
ved a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+# Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
# Copyright for this work is to expire January 1, 2010, after which it
# shall be public domain.
# Copyright for this work is to expire January 1, 2010, after which it
# shall be public domain.
@@
-38,13
+38,13
@@
if [ "$HTTPGET" = "" ]; then
HTTPGETOPTS=${HTTPGETOPTS:="-q -o -"}
elif [ X"$(uname)" = X"NetBSD" ] ; then
HTTPGET=ftp
HTTPGETOPTS=${HTTPGETOPTS:="-q -o -"}
elif [ X"$(uname)" = X"NetBSD" ] ; then
HTTPGET=ftp
- HTTPGETOPTS=${HTTPGETOPTS:="-
q -o -
"}
+ HTTPGETOPTS=${HTTPGETOPTS:="-
a -V -o -
"}
elif [ X"$(uname)" = X"Darwin" ] ; then
HTTPGET=curl
HTTPGETOPTS=${HTTPGETOPTS:="-f -s"}
else
HTTPGET=wget
elif [ X"$(uname)" = X"Darwin" ] ; then
HTTPGET=curl
HTTPGETOPTS=${HTTPGETOPTS:="-f -s"}
else
HTTPGET=wget
- HTTPGETOPTS=${HTTPGETOPTS:="-q -O -"}
+ HTTPGETOPTS=${HTTPGETOPTS:="-q -
nv -e timestamping=off -
O -"}
fi
fi
fi
fi
@@
-208,7
+208,7
@@
query) # cddb-tool query serverurl proto user host discid...
shift 4
TRACKINFO="$@"
TRACKINFOPLUS=$(echo $TRACKINFO | tr ' ' '+')
shift 4
TRACKINFO="$@"
TRACKINFOPLUS=$(echo $TRACKINFO | tr ' ' '+')
- RESULTS=$($HTTPGET "$SERVER?cmd=cddb+query+$TRACKINFOPLUS
\&hello=$HELLOINFO\
&proto=$PROTO") || exit $LOOKUP_ERR
+ RESULTS=$($HTTPGET "$SERVER?cmd=cddb+query+$TRACKINFOPLUS
&hello=$HELLOINFO
&proto=$PROTO") || exit $LOOKUP_ERR
echo "$RESULTS" | tr '\r' '\n' | tr -s '\n' | sed 's/^ //g'
;;
echo "$RESULTS" | tr '\r' '\n' | tr -s '\n' | sed 's/^ //g'
;;
@@
-220,7
+220,7
@@
read) # cddb-tool read serverurl proto user host genre discnumber
CATEGORY="$5"
DISCID="$6"
HELLOINFO="$USER+$HOST+$NAME+$VERSION"
CATEGORY="$5"
DISCID="$6"
HELLOINFO="$USER+$HOST+$NAME+$VERSION"
- $HTTPGET $CDDBDATA "$SERVER?cmd=cddb+read+$CATEGORY+$DISCID
\&hello=$HELLOINFO\
&proto=$PROTO" 2>/dev/null
+ $HTTPGET $CDDBDATA "$SERVER?cmd=cddb+read+$CATEGORY+$DISCID
&hello=$HELLOINFO
&proto=$PROTO" 2>/dev/null
;;
stat) # cddb-tool stat serverurl user host proto
;;
stat) # cddb-tool stat serverurl user host proto
@@
-229,7
+229,7
@@
stat) # cddb-tool stat serverurl user host proto
HOST="$3"
PROTO="$4"
HELLOINFO="$USER+$HOST+$NAME+$VERSION"
HOST="$3"
PROTO="$4"
HELLOINFO="$USER+$HOST+$NAME+$VERSION"
- $HTTPGET $CDDBDATA "$SERVER?cmd=stat&hello=$HELLOINFO
\
&proto=$PROTO" 2>/dev/null
+ $HTTPGET $CDDBDATA "$SERVER?cmd=stat&hello=$HELLOINFO&proto=$PROTO" 2>/dev/null
;;
help) # help
;;
help) # help