forked from HPR/hpr-tools
		
	Various updates
Show_Submission/copy_shownotes: Changed the location of the function library
Show_Submission/do_brave: Updates to the way local stand-alone HTML is generated for
    review purposes.
Show_Submission/do_index: Changed the location of the function library
Show_Submission/do_pandoc: Changed the location of the function library; now uses
    'author_title.pl' to generate YAML for Pandoc
Show_Submission/do_parse: Trivial change
Show_Submission/do_pictures: Changed the location of the function library; better
    handling of the show specification
Show_Submission/do_report: Changed the location of the function library
Show_Submission/do_update_reservations: Changed the location of the function library
Show_Submission/fix_relative_links: Added features 'say' and 'state'
Show_Submission/parse_JSON: New checks: notes too short, trailing spaces on title,
    summary and tags (needing JSON changes). Check for Markdown in the
    assets (see 'do_pandoc_assets'). New 'trim' function.
			
			
This commit is contained in:
		| @@ -15,7 +15,7 @@ | ||||
| #       AUTHOR: Dave Morriss (djm), Dave.Morriss@gmail.com | ||||
| #      VERSION: 0.0.8 | ||||
| #      CREATED: 2022-09-07 15:27:29 | ||||
| #     REVISION: 2023-06-01 17:58:09 | ||||
| #     REVISION: 2024-06-18 20:13:46 | ||||
| # | ||||
| #=============================================================================== | ||||
|  | ||||
| @@ -32,9 +32,9 @@ STDOUT="/dev/fd/2" | ||||
| # | ||||
| # Load library functions | ||||
| # | ||||
| LIB="$HOME/bin/function_lib.sh" | ||||
| LIB="$HOME/HPR/function_lib.sh" | ||||
| [ -e "$LIB" ] || { echo "$SCRIPT: Unable to source functions"; exit 1; } | ||||
| # shellcheck source=/home/cendjm/bin/function_lib.sh | ||||
| # shellcheck source=/home/cendjm/HPR/function_lib.sh | ||||
| source "$LIB" | ||||
|  | ||||
| # | ||||
| @@ -42,7 +42,7 @@ source "$LIB" | ||||
| # | ||||
| define_colours | ||||
|  | ||||
| #{{{ Functions: --- _usage --- _DEBUG --- _verbose --- _silent --- | ||||
| #{{{ Functions: --- _usage --- _verbose --- _silent --- | ||||
| #===  FUNCTION  ================================================================ | ||||
| #         NAME: _usage | ||||
| #  DESCRIPTION: Report usage | ||||
| @@ -77,22 +77,6 @@ endusage | ||||
|     exit | ||||
| } | ||||
|  | ||||
| #===  FUNCTION  ================================================================ | ||||
| #         NAME: _DEBUG | ||||
| #  DESCRIPTION: Writes one or more messages if in DEBUG mode. Each argument is | ||||
| #               seen as a message and is written on a separate line. | ||||
| #               References the global variable 'DEBUG' which is expected to be | ||||
| #               True if debug output is wanted. | ||||
| #   PARAMETERS: List of messages | ||||
| #      RETURNS: Nothing | ||||
| #=============================================================================== | ||||
| _DEBUG () { | ||||
|     [ "$DEBUG" == 0 ] && return | ||||
|     for msg in "$@"; do | ||||
|         printf 'D> %s\n' "$msg" | ||||
|     done | ||||
| } | ||||
|  | ||||
| #===  FUNCTION  ================================================================ | ||||
| #         NAME: _verbose | ||||
| #  DESCRIPTION: Writes a message in verbose mode | ||||
|   | ||||
		Reference in New Issue
	
	Block a user