diff --git a/src/chk_deployed_ids b/src/chk_deployed_ids index 67318e6..0becd13 100644 --- a/src/chk_deployed_ids +++ b/src/chk_deployed_ids @@ -8,6 +8,8 @@ # USAGE # chk_deployed_ids # +# DEPENDENCIES src/print_meta_flac +# # } chk_deployed_ids() { diff --git a/src/chk_metadata b/src/chk_metadata index e92549a..5454d78 100644 --- a/src/chk_metadata +++ b/src/chk_metadata @@ -8,6 +8,8 @@ # USAGE # chk_metadata [] [<...>] # +# DEPENDENCIES bunc/src/* src/deploy_meta +# # } chk_metadata() { diff --git a/src/cmd_deploy b/src/cmd_deploy index 3dc7f37..7143350 100644 --- a/src/cmd_deploy +++ b/src/cmd_deploy @@ -8,6 +8,8 @@ # USAGE # cmd_deploy - [] # +# DEPENDENCIES bunc/src/* src/print_imageid_du src/deploy_rm src/deploy_cp src/deploy_meta +# # } cmd_deploy() { diff --git a/src/cmd_du b/src/cmd_du index 186c611..1c38d52 100644 --- a/src/cmd_du +++ b/src/cmd_du @@ -8,6 +8,8 @@ # USAGE # cmd_du # +# DEPENDENCIES bunc/src/* src/print_imageid_du +# # } cmd_du() { diff --git a/src/cmd_exclude b/src/cmd_exclude index 65c9426..14d33c2 100644 --- a/src/cmd_exclude +++ b/src/cmd_exclude @@ -13,6 +13,8 @@ # = # The metadata field can be anything that can be injected as metadata in a Vorbis or id3tag. # +# DEPENDENCIES bunc/src/* src/print_imageid_du src/db_set +# # } cmd_exclude() { diff --git a/src/cmd_fsck b/src/cmd_fsck index 0a526ee..5ec2a91 100644 --- a/src/cmd_fsck +++ b/src/cmd_fsck @@ -8,6 +8,8 @@ # USAGE # cmd_fsck # +# DEPENDENCIES src/chk_deployed_ids src/chk_nonexistent_ids src/chk_metadata +# # } cmd_fsck() { diff --git a/src/cmd_import b/src/cmd_import index 83f4e2d..8e8efb1 100644 --- a/src/cmd_import +++ b/src/cmd_import @@ -1,6 +1,6 @@ #!/bin/bash -# doc cmd_import +# doc cmd_import { # # DESCRIPTION # cmd_import - Wrapper for import functions @@ -16,6 +16,9 @@ # # tracks Import tracks, or archive containing tracks, into git directory # +# DEPENDENCIES src/import_tracks src/import_images +# +# } cmd_import() { local CMD="${1}" diff --git a/src/cmd_import_images b/src/cmd_import_images index fafaf0a..39ec2cf 100644 --- a/src/cmd_import_images +++ b/src/cmd_import_images @@ -8,6 +8,8 @@ # USAGE # cmd_import_cueripper [<...>] # +# DEPENDENCIES import_cueripper +# # } cmd_import_cueripper() { diff --git a/src/cmd_import_tracks b/src/cmd_import_tracks index 590c3af..017da5b 100644 --- a/src/cmd_import_tracks +++ b/src/cmd_import_tracks @@ -8,6 +8,8 @@ # USAGE # cmd_import_tracks # +# DEPENDENCIES bunc/src/* src/import_track src/import_dir src/ismp3 src/iszip +# # } cmd_import_tracks() { diff --git a/src/cmd_include b/src/cmd_include index 166fdd8..32f6457 100644 --- a/src/cmd_include +++ b/src/cmd_include @@ -13,6 +13,8 @@ # = # The metadata field can be anything that can be injected as metadata in a Vorbis or id3tag. # +# DEPENDENCIES bunc/src/* src/print_imageid_du +# # } cmd_include() { diff --git a/src/cmd_init b/src/cmd_init index 03ba147..843ea84 100644 --- a/src/cmd_init +++ b/src/cmd_init @@ -8,6 +8,8 @@ # USAGE # cmd_init # +# DEPENDENCIES bunc/src/* +# # } cmd_init() { diff --git a/src/cmd_update b/src/cmd_update index deff330..be459c0 100644 --- a/src/cmd_update +++ b/src/cmd_update @@ -8,6 +8,8 @@ # USAGE # cmd_update [] # +# DEPENDENCIES src/db_update +# # } cmd_update() { diff --git a/src/db_set b/src/db_set index 62e4725..647a778 100644 --- a/src/db_set +++ b/src/db_set @@ -13,6 +13,8 @@ # = # The metadata field can be anything that can be injected as metadata in a Vorbis or id3tag. # +# DEPENDENCIES bunc/src/* src/print_meta_mtag +# # } db_set() { diff --git a/src/deploy_cp b/src/deploy_cp index 2f11647..2389a4e 100644 --- a/src/deploy_cp +++ b/src/deploy_cp @@ -9,6 +9,8 @@ # USAGE # deploy_cp # +# DEPENDENCIES bunc/src/* src/deploy_gen src/deploy_mv +# # } deploy_cp() { diff --git a/src/deploy_gen b/src/deploy_gen index e031509..25de0f6 100644 --- a/src/deploy_gen +++ b/src/deploy_gen @@ -8,6 +8,7 @@ # # USAGE # deploy_gen +# # } deploy_gen() { diff --git a/src/deploy_meta b/src/deploy_meta index fcaeff6..127b1cf 100644 --- a/src/deploy_meta +++ b/src/deploy_meta @@ -8,6 +8,8 @@ # USAGE # deploy_meta # +# DEPENDENCIES bunc/src/* src/print_mtag_trackno src/print_meta_mtag src/print_future_path src/print_present_path src/print_meta_flac +# # } deploy_meta() { diff --git a/src/deploy_rm b/src/deploy_rm index 69eedcc..6e941f0 100644 --- a/src/deploy_rm +++ b/src/deploy_rm @@ -8,6 +8,8 @@ # USAGE # deploy_rm # +# DEPENDENCIES bunc/src/* src/print_present_path +# # } deploy_rm() { diff --git a/src/gen_cue b/src/gen_cue index 67d9726..6b97590 100644 --- a/src/gen_cue +++ b/src/gen_cue @@ -8,6 +8,8 @@ # USAGE # gen_cue [] [<...>] # +# DEPENDENCIES src/gen_breaklist +# # } gen_cue() { diff --git a/src/gen_image b/src/gen_image index e89e0d3..51ec553 100644 --- a/src/gen_image +++ b/src/gen_image @@ -8,6 +8,8 @@ # USAGE # gen_image [] [<...>] # +# DEPENDENCIES src/med_convert +# # } gen_image() { diff --git a/src/gen_trackid b/src/gen_trackid index 9d33fa1..51926ac 100644 --- a/src/gen_trackid +++ b/src/gen_trackid @@ -8,6 +8,8 @@ # USAGE # gen_trackid # +# DEPENDENCIES src/deploy_split +# # } gen_trackid() { diff --git a/src/import_images b/src/import_images index b3eee67..657d309 100644 --- a/src/import_images +++ b/src/import_images @@ -11,6 +11,8 @@ # USAGE # import_cueripper # +# DEPENDENCIES src/print_meta_mtag src/add_bom src/fix_apos src/gen_cover src/file_name src/cueparser +# # } diff --git a/src/import_track b/src/import_track index 5aa5069..d074994 100644 --- a/src/import_track +++ b/src/import_track @@ -11,6 +11,8 @@ # USAGE # import_track # +# DEPENDENCIES src/print_meta_flac +# # } import_track() { diff --git a/src/print_cue_breaklist b/src/print_cue_breaklist index eaab686..d28f126 100644 --- a/src/print_cue_breaklist +++ b/src/print_cue_breaklist @@ -8,6 +8,8 @@ # USAGE # print_cue_breaklist [<...>] # +# DEPENDENCIES src/sec2min +# # } print_cue_breaklist() { diff --git a/src/print_meta_mtag b/src/print_meta_mtag index df7761b..aea5185 100644 --- a/src/print_meta_mtag +++ b/src/print_meta_mtag @@ -10,6 +10,8 @@ # USAGE # print_meta_mtag [ <...>] # +# DEPENDENCIES print_mtag_field +# # } @@ -18,8 +20,12 @@ print_meta_mtag() { local TRACK_NO="${2}"; shift 2 local tagList=(${@}) + # If list of Tags isn't giving, assumes that we want to output all tags, and thus this + # generates all tags present in MTAG file [[ -z "${tagList[@]}" ]] && local tagList=($(awk 'BEGIN{RS="[,]?\n";FS=" : "}{if($1!~"@"){print $1}}' ${FILE} | tr -d '[]{}" ' | awk '!seen[$0]++' | tail -n +3) IMAGEID) + + # Goes through every tag, determines it's original value, and then prints out. for tag in ${tagList[@]}; do # Finalizes output with IMAGEID [[ "${tag}" == "IMAGEID" ]] && { echo -n "IMAGEID=$(sed 's|.tags||g' <<< $(basename "${FILE}"))"; continue; } diff --git a/src/print_mtag_trackno b/src/print_mtag_trackno index 5c06017..a8bcbe3 100644 --- a/src/print_mtag_trackno +++ b/src/print_mtag_trackno @@ -8,6 +8,8 @@ # USAGE # print_mtag_trackno # +# DEPENDENCIES src/print_mtag_field +# # } print_mtag_trackno() {