History

fix broken -f option; replace 'unknown' version with current hg revision number. Fixes issue 10

Serge Zirukin committed 16 years ago

Commit 89282c71 parent c9dba271 file · +10 −5Browse files

Unified · Split

split2flac.sh+10−5
@@ -64,11 +64,9 @@ SAVE=0 · 63 unmodified lines
64NASK=064NASK=0
65unset PIC INPATH CUE CHARSET65unset PIC INPATH CUE CHARSET
66FORCE=066FORCE=0
67e="\${ENCARGS_${FORMAT}}"
68ENCARGS=`eval echo "$e"`
69ENCHELP=0
70 67
71VERSION=unknown68# do not forget to update before commit
69VERSION=80
72 70
73HELP="\${cG}split2flac version: ${VERSION}71HELP="\${cG}split2flac version: ${VERSION}
74Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming.72Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming.
@@ -117,6 +115,12 @@ emsg () { · 42 unmodified lines
117 $msg "${cR}$1${cZ}"115 $msg "${cR}$1${cZ}"
118}116}
119 117
118update_encargs () {
119 e="\${ENCARGS_${FORMAT}}"
120 ENCARGS=`eval echo "$e"`
121 ENCHELP=0
122}
123
120update_colors () {124update_colors () {
121 if [ "${NOCOLORS}" -eq 0 ]; then125 if [ "${NOCOLORS}" -eq 0 ]; then
122 cR="\033[31m"126 cR="\033[31m"
@@ -130,6 +134,7 @@ update_colors () { · 7 unmodified lines
130 fi134 fi
131}135}
132 136
137update_encargs
133update_colors138update_colors
134 139
135# parse arguments140# parse arguments
@@ -140,7 +145,7 @@ while [ "$1" ]; do · 4 unmodified lines
140 -cue) CUE=$2; shift;;145 -cue) CUE=$2; shift;;
141 -cuecharset) CHARSET=$2; shift;;146 -cuecharset) CHARSET=$2; shift;;
142 -nask) NASK=1;;147 -nask) NASK=1;;
143 -f) FORMAT=$2; shift;;148 -f) FORMAT=$2; update_encargs; shift;;
144 -e) ENCARGS=$2; shift;;149 -e) ENCARGS=$2; shift;;
145 -eh) ENCHELP=1;;150 -eh) ENCHELP=1;;
146 -c) NOPIC=0; PIC=$2; shift;;151 -c) NOPIC=0; PIC=$2; shift;;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t