[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:
ayakael 2018-07-19 06:18:56 -08:00
parent c48ff97322
commit 78e2f5ebd8
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
2 changed files with 18 additions and 1 deletions

View file

@ -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
View 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
}