History

fix -e/-f ordering issue. Fixes #18

Serge Ziryukin committed 11 years ago

Commit ca2c3861 parent 41464231 file · +9 −5Browse files

Unified · Split

split2flac+9−5
@@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 66 unmodified lines
67FORCE=067FORCE=0
68 68
69# do not forget to update before commit69# do not forget to update before commit
70VERSION=11770VERSION=118
71 71
72HELP="\${cG}split2flac version: ${VERSION}72HELP="\${cG}split2flac version: ${VERSION}
73Splits 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.73Splits 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.
@@ -123,10 +123,14 @@ emsg () { · 49 unmodified lines
123 $msg "${cR}$1${cZ}"123 $msg "${cR}$1${cZ}"
124}124}
125 125
126SKIP_UPDATE_ENCARGS=0
127
126update_encargs () {128update_encargs () {
127 e="\${ENCARGS_${FORMAT}}"129 if [ ${SKIP_UPDATE_ENCARGS} -eq 0 ]; then
128 ENCARGS=`eval echo "$e"`130 e="\${ENCARGS_${FORMAT}}"
129 ENCHELP=0131 ENCARGS=`eval echo "$e"`
132 ENCHELP=0
133 fi
130}134}
131 135
132update_colors () {136update_colors () {
@@ -154,7 +158,7 @@ while [ "$1" ]; do · 21 unmodified lines
154 -cuecharset) CHARSET=$2; shift;;158 -cuecharset) CHARSET=$2; shift;;
155 -nask) NASK=1;;159 -nask) NASK=1;;
156 -f) FORMAT=$2; update_encargs; shift;;160 -f) FORMAT=$2; update_encargs; shift;;
157 -e) ENCARGS=$2; shift;;161 -e) ENCARGS=$2; SKIP_UPDATE_ENCARGS=1; shift;;
158 -eh) ENCHELP=1;;162 -eh) ENCHELP=1;;
159 -enca) ENCA_ARGS=$2; shift;;163 -enca) ENCA_ARGS=$2; shift;;
160 -c) NOPIC=0; PIC=$2; shift;;164 -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