"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/stuff.m4" between
argbash-2.9.0.tar.gz and argbash-2.10.0.tar.gz

About: argbash is a bash code generator that can assist you in writing scripts that accept arguments.

stuff.m4  (argbash-2.9.0):stuff.m4  (argbash-2.10.0)
skipping to change at line 133 skipping to change at line 133
[_DEFINE_SCRIPT_DIR([$1], [cd "$(dirname "$(readlink -e "${BASH_SOURCE[0] }")")" && pwd])], [_DEFINE_SCRIPT_DIR([$1], [cd "$(dirname "$(readlink -e "${BASH_SOURCE[0] }")")" && pwd])],
)]) )])
dnl dnl
dnl $1: Name of the holding variable dnl $1: Name of the holding variable
dnl $2: Command to find the script dir dnl $2: Command to find the script dir
m4_define([_DEFINE_SCRIPT_DIR], [m4_do( m4_define([_DEFINE_SCRIPT_DIR], [m4_do(
[m4_define([SCRIPT_DIR_DEFINED])], [m4_define([SCRIPT_DIR_DEFINED])],
[m4_define([_SCRIPT_DIR_NAME], m4_ifnblank([$1], [[$1]], _DEFAULT_SCRIPTD IR))], [m4_define([_SCRIPT_DIR_NAME], m4_ifnblank([$1], [[$1]], _DEFAULT_SCRIPTD IR))],
[m4_list_append([_OTHER], [m4_list_append([_OTHER],
m4_quote(_SCRIPT_DIR_NAME[="$($2)" || die "Couldn't determine the script's running directory, which probably matters, bailing out" 2]))], m4_quote(_SCRIPT_DIR_NAME[="$($2)" || ]_INLINE_DIE_BLOCK([Couldn' t determine the script's running directory, which probably matters, bailing out] , 2)))],
)]) )])
dnl dnl
dnl $1: argname dnl $1: argname
dnl $2: _arg_type dnl $2: _arg_type
dnl $3: _min_argn dnl $3: _min_argn
dnl $4: _max_argn dnl $4: _max_argn
dnl In case of 'inf': If _INF_REPR is not blank, use it, otherwise compose the c ommand-line yourself dnl In case of 'inf': If _INF_REPR is not blank, use it, otherwise compose the c ommand-line yourself
m4_define([_POS_ARG_HELP_LINE], [m4_do( m4_define([_POS_ARG_HELP_LINE], [m4_do(
[m4_case([$2], [m4_case([$2],
skipping to change at line 406 skipping to change at line 406
], ],
[dnl Plus, don't display extended help for an arg if it doesn't h ave a description [dnl Plus, don't display extended help for an arg if it doesn't h ave a description
], ],
[m4_if(_DISTINCT_OPTIONAL_ARGS_COUNT, 0, , [_MAKE_HELP_FUNCTION_O PTIONAL_PART([$2])])], [m4_if(_DISTINCT_OPTIONAL_ARGS_COUNT, 0, , [_MAKE_HELP_FUNCTION_O PTIONAL_PART([$2])])],
[dnl Print a more verbose help message to the end of the help (if requested) [dnl Print a more verbose help message to the end of the help (if requested)
], ],
[m4_list_ifempty([ENV_NAMES], ,[_MAKE_HELP_FUNCTION_ENVVARS_PART( )_ENDL_()])], [m4_list_ifempty([ENV_NAMES], ,[_MAKE_HELP_FUNCTION_ENVVARS_PART( )_ENDL_()])],
[_MAKE_ARGS_STACKING_HELP_PRINT_IF_NEEDED], [_MAKE_ARGS_STACKING_HELP_PRINT_IF_NEEDED],
[m4_ifnblank(m4_quote(_HELP_MSG_EX), [m4_ifnblank(m4_quote(_HELP_MSG_EX),
m4_dquote(_INDENT_()[printf] '\n%s\n' "SUBSTITUTE_LF_FOR_ NEWLINE_WITH_INDENT_AND_ESCAPE_DOUBLEQUOTES(_HELP_MSG_EX, [])"_ENDL_()))], m4_dquote(_INDENT_()[printf] '\n%s\n' "SUBSTITUTE_LF_FOR_ NEWLINE_WITH_INDENT_AND_ESCAPE_DOUBLEQUOTES(_HELP_MSG_EX, [])"_ENDL_()))],
[_HELP_PROGS],
)], )],
)]) )])
dnl dnl
dnl $1: Arg name dnl $1: Arg name
dnl $2: Short arg name (not used here) dnl $2: Short arg name (not used here)
dnl $3: Name of the value-to-variable macro dnl $3: Name of the value-to-variable macro
dnl $4: The name of the argument-holding variable dnl $4: The name of the argument-holding variable
dnl $5: Where to get the last value (optional) dnl $5: Where to get the last value (optional)
m4_define([_VAL_OPT_ADD_SPACE_WITHOUT_GETOPT_OR_SHORT_OPT], [_JOIN_INDENTED(_IND ENT_LEVEL_IN_ARGV_CASE_BODY, m4_define([_VAL_OPT_ADD_SPACE_WITHOUT_GETOPT_OR_SHORT_OPT], [_JOIN_INDENTED(_IND ENT_LEVEL_IN_ARGV_CASE_BODY,
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)