History

fix parallel runs (use mktemp to create unique cue sheet filename to save the internal one)

Serge Zirukin committed 15 years ago

Commit f8a875a1 parent 3d4f7a51 file · +3 −2Browse files

Unified · Split

split2flac.sh+3−2
@@ -35,7 +35,7 @@ · 34 unmodified lines
35# 3 - something has failed35# 3 - something has failed
36 36
37CONFIG="${HOME}/.split2flac"37CONFIG="${HOME}/.split2flac"
38TMPCUE="${HOME}/.split2flac_sheet.cue"38TMPCUE="${HOME}/.split2flac_XXXXX.cue"
39TMPPIC="${HOME}/.split2flac_cover.jpg"39TMPPIC="${HOME}/.split2flac_cover.jpg"
40FAILED="split_failed.txt"40FAILED="split_failed.txt"
41 41
@@ -68,7 +68,7 @@ unset PIC INPATH CUE CHARSET · 26 unmodified lines
68FORCE=068FORCE=0
69 69
70# do not forget to update before commit70# do not forget to update before commit
71VERSION=10071VERSION=101
72 72
73HELP="\${cG}split2flac version: ${VERSION}73HELP="\${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.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.
@@ -294,6 +294,7 @@ split_file () { · 219 unmodified lines
294 294
295 if [ -n "${CUESHEET}" ]; then295 if [ -n "${CUESHEET}" ]; then
296 $msg "${cP}Found internal cue sheet$cZ\n"296 $msg "${cP}Found internal cue sheet$cZ\n"
297 TMPCUE=$(mktemp "${TMPCUE}")
297 CUE="${TMPCUE}"298 CUE="${TMPCUE}"
298 echo "${CUESHEET}" > "${CUE}"299 echo "${CUESHEET}" > "${CUE}"
299 300

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