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
6464 NASK=0
6565 unset PIC INPATH CUE CHARSET
6666 FORCE=0
67−e="\${ENCARGS_${FORMAT}}"
68−ENCARGS=`eval echo "$e"`
69−ENCHELP=0
7067
71−VERSION=unknown
68+# do not forget to update before commit
69+VERSION=80
7270
7371 HELP="\${cG}split2flac version: ${VERSION}
7472 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.
@@ -117,6 +115,12 @@ emsg () { · 42 unmodified lines
117115 $msg "${cR}$1${cZ}"
118116 }
119117
118+update_encargs () {
119+ e="\${ENCARGS_${FORMAT}}"
120+ ENCARGS=`eval echo "$e"`
121+ ENCHELP=0
122+}
123+
120124 update_colors () {
121125 if [ "${NOCOLORS}" -eq 0 ]; then
122126 cR="\033[31m"
@@ -130,6 +134,7 @@ update_colors () { · 7 unmodified lines
130134 fi
131135 }
132136
137+update_encargs
133138 update_colors
134139
135140 # parse arguments
@@ -140,7 +145,7 @@ while [ "$1" ]; do · 4 unmodified lines
140145 -cue) CUE=$2; shift;;
141146 -cuecharset) CHARSET=$2; shift;;
142147 -nask) NASK=1;;
143− -f) FORMAT=$2; shift;;
148+ -f) FORMAT=$2; update_encargs; shift;;
144149 -e) ENCARGS=$2; shift;;
145150 -eh) ENCHELP=1;;
146151 -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