瀏覽代碼

Add usage information to cuetag.sh.

master
Svend Sorensen 20 年之前
父節點
當前提交
e3b6feea5c
共有 1 個檔案被更改,包括 13 行新增2 行删除
  1. +13
    -2
      tools/cuetag.sh

+ 13
- 2
tools/cuetag.sh 查看文件

@@ -1,11 +1,17 @@
#! /bin/sh

# cuetag - tag files based on cue/toc file information
# cuetag.sh - tag files based on cue/toc file information
# uses cueprint output
# usage: cuetag.sh <cuefile|tocfile> [file]...

CUEPRINT=cueprint
cue_file=""

usage()
{
echo "usage: cuetag.sh <cuefile|tocfile> [file]..."
}

# Vorbis Comments
vorbis()
{
@@ -113,6 +119,11 @@ id3()

main()
{
if [ $# -lt 1 ]; then
usage
exit
fi

cue_file=$1
shift

@@ -120,7 +131,7 @@ main()
trackno=1

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

for file in $@; do


Loading…
取消
儲存