[print_breakpoints] Deprecated the use of cuebreakpoints tool in favour of print_breakpoints function
[gen_tracks] Now uses print_breakpoints
This commit is contained in:
parent
c48ff97322
commit
78e2f5ebd8
2 changed files with 18 additions and 1 deletions
|
@ -18,7 +18,7 @@ gen_tracks() {
|
||||||
|
|
||||||
## breakpointList generator
|
## breakpointList generator
|
||||||
# Generates list with cuebreakpoints utility
|
# Generates list with cuebreakpoints utility
|
||||||
local breakpointList=($(cuebreakpoints "${CUE}" 2>/dev/null))
|
local breakpointList=($(print_breakpoints "${CUE}" ))
|
||||||
|
|
||||||
# In the event that breakpointList is empty because image represents only one track,
|
# In the event that breakpointList is empty because image represents only one track,
|
||||||
# no split occurs, and returns a 0.
|
# no split occurs, and returns a 0.
|
||||||
|
|
17
src/print_breakpoints
Normal file
17
src/print_breakpoints
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# doc print_breakpoints {
|
||||||
|
#
|
||||||
|
# DESCRIPTION
|
||||||
|
# print_breakpoints - Prints breakpoints of cue file
|
||||||
|
#
|
||||||
|
# USAGE
|
||||||
|
# print_breakpoints </path/to/cue/file>
|
||||||
|
#
|
||||||
|
# }
|
||||||
|
|
||||||
|
print_breakpoints() {
|
||||||
|
local CUE="${1}"
|
||||||
|
|
||||||
|
grep "INDEX 01" "${CUE}" | sed 's|.*INDEX 01 ||' | tail -n +2
|
||||||
|
}
|
Loading…
Reference in a new issue