Add usage information to cuetag.sh.
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# cuetag - tag files based on cue/toc file information
|
# cuetag.sh - tag files based on cue/toc file information
|
||||||
# uses cueprint output
|
# uses cueprint output
|
||||||
|
# usage: cuetag.sh <cuefile|tocfile> [file]...
|
||||||
|
|
||||||
CUEPRINT=cueprint
|
CUEPRINT=cueprint
|
||||||
cue_file=""
|
cue_file=""
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "usage: cuetag.sh <cuefile|tocfile> [file]..."
|
||||||
|
}
|
||||||
|
|
||||||
# Vorbis Comments
|
# Vorbis Comments
|
||||||
vorbis()
|
vorbis()
|
||||||
{
|
{
|
||||||
@@ -113,6 +119,11 @@ id3()
|
|||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
usage
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
cue_file=$1
|
cue_file=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
@@ -120,7 +131,7 @@ main()
|
|||||||
trackno=1
|
trackno=1
|
||||||
|
|
||||||
if [ $# -ne $ntrack ]; then
|
if [ $# -ne $ntrack ]; then
|
||||||
echo "Number of files does not match number of tracks."
|
echo "warning: number of files does not match number of tracks"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in $@; do
|
for file in $@; do
|
||||||
|
|||||||
Reference in New Issue
Block a user