History

do not use brace expansions. Fixes #24

Serge Ziryukin committed 11 years ago

Commit a5058921 parent c40cf7e1 file · +7 −7Browse files

Unified · Split

split2flac+7−7
@@ -47,7 +47,7 @@ REPLAY_GAIN=0 · 46 unmodified lines
47FORMAT="${0##*split2}"47FORMAT="${0##*split2}"
48DIR="."48DIR="."
49OUTPATTERN="@artist/{@year - }@album/@track - @title.@ext"49OUTPATTERN="@artist/{@year - }@album/@track - @title.@ext"
50COPYMASKS="Covers,covers,*.log,*.txt,*.jpg,*.cbr"50COPYMASKS="[Cc]overs \*.log \*.txt \*.jpg \*.cbr"
51COPYFILES=151COPYFILES=1
52ENCA_ARGS=""52ENCA_ARGS=""
53 53
@@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 13 unmodified lines
67FORCE=067FORCE=0
68 68
69# do not forget to update before commit69# do not forget to update before commit
70VERSION=11570VERSION=116
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.
@@ -384,7 +384,7 @@ split_file () { · 310 unmodified lines
384 unset PIC384 unset PIC
385 elif [ -z "${PIC}" ]; then385 elif [ -z "${PIC}" ]; then
386 # try common names386 # try common names
387 for i in {*/,}{*[Cc]over*,*[Ff]older*}.jpg; do387 for i in *[Cc]over*.jpg *[Ff]older*.jpg */*[Cc]over*.jpg */*[Ff]older*.jpg; do
388 if [ -r "${SDIR}/$i" ]; then388 if [ -r "${SDIR}/$i" ]; then
389 PIC="${SDIR}/$i"389 PIC="${SDIR}/$i"
390 break390 break
@@ -651,14 +651,14 @@ split_file () { · 260 unmodified lines
651 old=`pwd`651 old=`pwd`
652 cd "${SDIR}"652 cd "${SDIR}"
653 $msg "\n${cG}Copying files:$cZ\n"653 $msg "\n${cG}Copying files:$cZ\n"
654 eval "for i in {${COPYMASKS}}; do \654 eval "for i in ${COPYMASKS}; do \
655 test -r \"\$i\" && \655 test -r \"\$i\" && \
656 echo \" +> \$i\" 2>/dev/null; done"656 echo \" +> \$i\" 2>/dev/null; done"
657 cd "${old}"657 cd "${old}"
658 if [ ${DRY} -ne 1 ]; then658 if [ ${DRY} -ne 1 ]; then
659 eval "for i in \"${SDIR}\"/{${COPYMASKS}}; do \659 eval "for i in ${COPYMASKS}; do \
660 test -r \"\$i\" && \660 test -r/\"${SDIR}/\$i\" && \
661 cp -r \"\$i\" \"\${OUT}/\"; done"661 cp -r \"${SDIR}/\$i\" \"\${OUT}/\"; done"
662 fi662 fi
663 fi663 fi
664 664

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