"Fossies" - the Fresh Open Source Software Archive

Member "argbash-2.10.0/src/output-bash-script.m4" (22 Sep 2020, 1592 Bytes) of package /linux/privat/argbash-2.10.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "output-bash-script.m4": 2.9.0_vs_2.10.0.

    1 m4_include_once([function_generators.m4])
    2 m4_include_once([argument_value_types.m4])
    3 m4_include_once([env_vars.m4])
    4 m4_include_once([progs.m4])
    5 m4_include_once([value_validators.m4])
    6 
    7 
    8 m4_define([_MAKE_DEFAULTS_TO_ALL_POSITIONAL_ARGUMENTS], [[no]])
    9 m4_define([_IF_MAKE_DEFAULTS_TO_ALL_POSITIONAL_ARGUMENTS], [m4_if(_MAKE_DEFAULTS_TO_ALL_POSITIONAL_ARGUMENTS,
   10 	[yes], [$1],
   11 	[$2])])
   12 
   13 
   14 dnl $1: The macro call (the caller is supposed to pass [$0($@)])
   15 dnl What is also part of the API: The line
   16 dnl ### START OF CODE GENERATED BY Argbash vx.y.z one line above ###
   17 m4_define([ARGBASH_GO_BASE], [m4_do(
   18 	[[$1
   19 ]],
   20 	[DEFINE_MINIMAL_POSITIONAL_VALUES_COUNT],
   21 	[[# needed because of Argbash --> m4_ignore@{:@@<:@]_ENDL_()],
   22 	[_ARGBASH_ID()_ENDL_()],
   23 	[[# Argbash is a bash code generator used to get arguments parsing right.
   24 # Argbash is FREE SOFTWARE, see https://argbash.io for more info
   25 
   26 ]],
   27 	[_SETTLE_ENV],
   28 	[_IF_SOME_ARGS_ARE_DEFINED([m4_do(
   29 		[_MAKE_UTILS()_ENDL_()],
   30 		[_IF_HAVE_POSITIONAL_ARGS([_MAKE_DEFAULTS_POSITIONAL])],
   31 		[_IF_HAVE_OPTIONAL_ARGS([_MAKE_DEFAULTS_OPTIONAL])],
   32 		[_ENDL_()],
   33 		[_ENDL_()_MAKE_HELP([_FORMAT_OPTIONAL_ARGUMENT_FOR_HELP_SYNOPSIS], [_GNU_HELP_OPTION_COMPOSER])_ENDL_(2)],
   34 		[_MAKE_VALUES_ASSIGNMENTS_BASE(
   35 			[_IF_DIY_MODE([_ASSIGN_PREPARE], [_ASSIGN_GO])])_ENDL_()],
   36 	)])],
   37 	[_SETTLE_PROGS],
   38 	[_MAKE_OTHER()_ENDL_()],
   39 	[[### END OF CODE GENERATED BY Argbash (sortof) ### @:>@@:}@]],
   40 )])
   41 
   42 
   43 dnl
   44 dnl Identify the Argbash version (this is part of the API)
   45 m4_define([_ARGBASH_ID],
   46 	[### START OF CODE GENERATED BY Argbash v]_ARGBASH_VERSION[ one line above ###])
   47 
   48