[all] Added function dependency information

This commit is contained in:
ayakael 2018-05-18 13:39:39 -07:00
parent b45c5a8e6b
commit 817a79b4d4
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
25 changed files with 55 additions and 1 deletions

View file

@ -8,6 +8,8 @@
# USAGE
# chk_deployed_ids </path/to/target/dir> </path/to/db/file/>
#
# DEPENDENCIES src/print_meta_flac
#
# }
chk_deployed_ids() {

View file

@ -8,6 +8,8 @@
# USAGE
# chk_metadata </path/to/git/dir> </path/to/target> </path/to/db/file> [<IMAGEID>] [<...>]
#
# DEPENDENCIES bunc/src/* src/deploy_meta
#
# }
chk_metadata() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_deploy - </path/to/git/dir> </path/to/target> [<old git commit>]
#
# DEPENDENCIES bunc/src/* src/print_imageid_du src/deploy_rm src/deploy_cp src/deploy_meta
#
# }
cmd_deploy() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_du </path/to/git/dir> </path/to/target/dir>
#
# DEPENDENCIES bunc/src/* src/print_imageid_du
#
# }
cmd_du() {

View file

@ -13,6 +13,8 @@
# <metadata field>=<value>
# 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() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_fsck </path/to/git/dir> </path/to/target/dir>
#
# DEPENDENCIES src/chk_deployed_ids src/chk_nonexistent_ids src/chk_metadata
#
# }
cmd_fsck() {

View file

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

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_import_cueripper </path/to/batch> [<...>]
#
# DEPENDENCIES import_cueripper
#
# }
cmd_import_cueripper() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_import_tracks </path/to/git/dir> </path/to/dir_or_archive>
#
# DEPENDENCIES bunc/src/* src/import_track src/import_dir src/ismp3 src/iszip
#
# }
cmd_import_tracks() {

View file

@ -13,6 +13,8 @@
# <metadata field>=<value>
# 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() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_init </path/to/git/dir> </path/to/target>
#
# DEPENDENCIES bunc/src/*
#
# }
cmd_init() {

View file

@ -8,6 +8,8 @@
# USAGE
# cmd_update </path/to/git/dir> </path/to/target/dir> [<old git commit>]
#
# DEPENDENCIES src/db_update
#
# }
cmd_update() {

View file

@ -13,6 +13,8 @@
# <metadata field>=<value>
# 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() {

View file

@ -9,6 +9,8 @@
# USAGE
# deploy_cp </path/to/git/dir> </path/to/target> </path/to/db/file> <IMAGEID>
#
# DEPENDENCIES bunc/src/* src/deploy_gen src/deploy_mv
#
# }
deploy_cp() {

View file

@ -8,6 +8,7 @@
#
# USAGE
# deploy_gen </path/to/git/dir> <IMAGEID>
#
# }
deploy_gen() {

View file

@ -8,6 +8,8 @@
# USAGE
# deploy_meta <path/to/git/dir> <path/to/target> <path/to/db/file> <IMAGEID>
#
# 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() {

View file

@ -8,6 +8,8 @@
# USAGE
# deploy_rm </path/to/target> </path/to/db/file> <TRACKID>
#
# DEPENDENCIES bunc/src/* src/print_present_path
#
# }
deploy_rm() {

View file

@ -8,6 +8,8 @@
# USAGE
# gen_cue <output from file_name> <output from print_meta_tracks> <file_1> [<file_2>] [<...>]
#
# DEPENDENCIES src/gen_breaklist
#
# }
gen_cue() {

View file

@ -8,6 +8,8 @@
# USAGE
# gen_image <file_1> [<file_1>] [<...>]
#
# DEPENDENCIES src/med_convert
#
# }
gen_image() {

View file

@ -8,6 +8,8 @@
# USAGE
# gen_trackid </path/to/flac/file> </path/to/cue/fule>
#
# DEPENDENCIES src/deploy_split
#
# }
gen_trackid() {

View file

@ -11,6 +11,8 @@
# USAGE
# import_cueripper </path/to/album>
#
# DEPENDENCIES src/print_meta_mtag src/add_bom src/fix_apos src/gen_cover src/file_name src/cueparser
#
# }

View file

@ -11,6 +11,8 @@
# USAGE
# import_track </path/to/git/dir> </path/to/track>
#
# DEPENDENCIES src/print_meta_flac
#
# }
import_track() {

View file

@ -8,6 +8,8 @@
# USAGE
# print_cue_breaklist <file_1> [<...>]
#
# DEPENDENCIES src/sec2min
#
# }
print_cue_breaklist() {

View file

@ -10,6 +10,8 @@
# USAGE
# print_meta_mtag </path/to/mtag/file> <track no> [<field_1> <field_2> <...>]
#
# 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; }

View file

@ -8,6 +8,8 @@
# USAGE
# print_mtag_trackno <path/to/git/dir> <IMAGEID> <TRACKID>
#
# DEPENDENCIES src/print_mtag_field
#
# }
print_mtag_trackno() {