Unified · Split
| @@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 66 unmodified lines | |||
| 67 | FORCE=0 | 67 | FORCE=0 |
| 68 | 68 | ||
| 69 | # do not forget to update before commit | 69 | # do not forget to update before commit |
| 70 | VERSION=117 | 70 | VERSION=118 |
| 71 | 71 | ||
| 72 | HELP="\${cG}split2flac version: ${VERSION} | 72 | HELP="\${cG}split2flac version: ${VERSION} |
| 73 | Splits 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. | 73 | Splits 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 | ||
| 126 | SKIP_UPDATE_ENCARGS=0 | ||
| 127 | |||
| 126 | update_encargs () { | 128 | update_encargs () { |
| 127 | e="\${ENCARGS_${FORMAT}}" | 129 | if [ ${SKIP_UPDATE_ENCARGS} -eq 0 ]; then |
| 128 | ENCARGS=`eval echo "$e"` | 130 | e="\${ENCARGS_${FORMAT}}" |
| 129 | ENCHELP=0 | 131 | ENCARGS=`eval echo "$e"` |
| 132 | ENCHELP=0 | ||
| 133 | fi | ||
| 130 | } | 134 | } |
| 131 | 135 | ||
| 132 | update_colors () { | 136 | update_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;; |