Skip to content

Commit 0cc4a97

Browse files
committed
Release of 2.8.1
1 parent 85e5841 commit 0cc4a97

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

ChangeLog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
2.8.1 (TBA)
1+
2.8.1 (2019-06-30)
22
------------------
33

44
Incompatible changes (minor):
55

66
* The `DEFINE_SCRIPT_DIR` macro doesn't resolve symlinks as it started to do so in `2.8.0`, use `DEFINE_SCRIPT_DIR_GNU` if you need the functionality.
77

8-
New features:
8+
New features (minor):
99

1010
* The help message now contains reference for one-of argument types (#76).
1111

bin/argbash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# ARGBASH_GO()
2525
# needed because of Argbash --> m4_ignore([
26-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
26+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
2727
# Argbash is a bash code generator used to get arguments parsing right.
2828
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
2929

@@ -187,11 +187,11 @@ parse_commandline()
187187
exit 0
188188
;;
189189
-v|--version)
190-
printf '%s %s\n\n%s\n' "argbash" "2.8.0" 'Argbash is an argument parser generator for Bash.'
190+
printf '%s %s\n\n%s\n' "argbash" "2.8.1" 'Argbash is an argument parser generator for Bash.'
191191
exit 0
192192
;;
193193
-v*)
194-
printf '%s %s\n\n%s\n' "argbash" "2.8.0" 'Argbash is an argument parser generator for Bash.'
194+
printf '%s %s\n\n%s\n' "argbash" "2.8.1" 'Argbash is an argument parser generator for Bash.'
195195
exit 0
196196
;;
197197
*)
@@ -460,7 +460,7 @@ then
460460
# match against suspicious, then inverse match against correct stuff:
461461
# #<optional whitespace>\(allowed\|another allowed\|...\)<optional whitespace><opening bracket <or> end of line>
462462
# Then, extract all matches (assumed to be alnum chars + '_') from grep and put them in the error msg.
463-
grep_output="$(printf "%s" "$output" | grep '^#\s*\(ARG_\|ARGBASH\)' | grep -v '^#\s*\(ARGBASH_SET_INDENT\|ARG_OPTIONAL_SINGLE\|ARG_VERSION\|ARG_VERSION_AUTO\|ARG_HELP\|ARG_OPTIONAL_INCREMENTAL\|ARG_OPTIONAL_REPEATED\|ARG_VERBOSE\|ARG_OPTIONAL_BOOLEAN\|ARG_OPTIONAL_ACTION\|ARG_POSITIONAL_SINGLE\|ARG_POSITIONAL_INF\|ARG_POSITIONAL_MULTI\|ARG_POSITIONAL_DOUBLEDASH\|ARG_OPTION_STACKING\|ARG_RESTRICT_VALUES\|ARG_DEFAULTS_POS\|ARG_LEFTOVERS\|ARGBASH_WRAP\|INCLUDE_PARSING_CODE\|DEFINE_SCRIPT_DIR\|DEFINE_SCRIPT_DIR_GNU\|_DEFINE_SCRIPT_DIR\|ARGBASH_SET_DELIM\|ARGBASH_GO\|ARGBASH_PREPARE\|ARG_TYPE_GROUP\|ARG_TYPE_GROUP_SET\|ARG_USE_ENV\|ARG_USE_PROG\)\s*\((\|$\)' | sed -e 's/#\s*\([[:alnum:]_]*\).*/\1 /' | tr -d '\n\r')"
463+
grep_output="$(printf "%s" "$output" | grep '^#\s*\(ARG_\|ARGBASH\)' | grep -v '^#\s*\(ARGBASH_SET_INDENT\|ARG_OPTIONAL_SINGLE\|ARG_VERSION\|ARG_VERSION_AUTO\|ARG_HELP\|ARG_OPTIONAL_INCREMENTAL\|ARG_OPTIONAL_REPEATED\|ARG_VERBOSE\|ARG_OPTIONAL_BOOLEAN\|ARG_OPTIONAL_ACTION\|ARG_POSITIONAL_SINGLE\|ARG_POSITIONAL_INF\|ARG_POSITIONAL_MULTI\|ARG_POSITIONAL_DOUBLEDASH\|ARG_OPTION_STACKING\|ARG_RESTRICT_VALUES\|ARG_DEFAULTS_POS\|ARG_LEFTOVERS\|ARGBASH_WRAP\|INCLUDE_PARSING_CODE\|DEFINE_SCRIPT_DIR\|DEFINE_SCRIPT_DIR_GNU\|ARGBASH_SET_DELIM\|ARGBASH_GO\|ARGBASH_PREPARE\|ARG_TYPE_GROUP\|ARG_TYPE_GROUP_SET\|ARG_USE_ENV\|ARG_USE_PROG\)\s*\((\|$\)' | sed -e 's/#\s*\([[:alnum:]_]*\).*/\1 /' | tr -d '\n\r')"
464464
test -n "$grep_output" && die "Your script contains possible misspelled Argbash macros: $grep_output" 1
465465
fi
466466
if test "$outfname" != '-'

bin/argbash-1to2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# shellcheck disable=SC2016
44
# SC2016: Expressions don't expand in single quotes, use double quotes for that.
55

6-
version=2.8.0
6+
version=2.8.1
77
# ARG_POSITIONAL_INF([input],[The input file to transform],[1])
88
# ARG_OPTIONAL_SINGLE([output],[o],[Name of the output file (pass '-' for stdout and empty string for the same as input file)],[""])
99
# ARG_VERSION([echo "argbash-1to2 v$version"])
1010
# ARG_HELP([Convert a template for argbash>=1,<2 to argbash>=2,<3])
1111

1212
# ARGBASH_GO()
1313
# needed because of Argbash --> m4_ignore([
14-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
14+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
1515
# Argbash is a bash code generator used to get arguments parsing right.
1616
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1717

bin/argbash-init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SC2001: See if you can use ${variable//search/replace} instead.
55
# SC2016: Expressions don't expand in single quotes, use double quotes for that.
66

7-
version=2.8.0
7+
version=2.8.1
88
# ARG_POSITIONAL_SINGLE([output],[Name of the output template],[-])
99
# ARG_OPTIONAL_INCREMENTAL([separate],[s],[Separate the parsing logic (specify two times for complete separation)])
1010
# ARG_OPTIONAL_BOOLEAN([hints],[],[Whether to write hints to the script template])
@@ -19,7 +19,7 @@ version=2.8.0
1919

2020
# ARGBASH_GO()
2121
# needed because of Argbash --> m4_ignore([
22-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
22+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
2323
# Argbash is a bash code generator used to get arguments parsing right.
2424
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
2525

doc/_static/argbash-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
argbash 2.8.0
1+
argbash 2.8.1
22

33
Argbash is an argument parser generator for Bash.

resources/examples/minimal-raw.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# m4_ignore(
44
echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
5-
exit 11 #)Created by argbash-init v2.8.0
5+
exit 11 #)Created by argbash-init v2.8.1
66
# ARG_OPTIONAL_SINGLE([option])
77
# ARG_OPTIONAL_BOOLEAN([print])
88
# ARG_POSITIONAL_SINGLE([positional-arg])

resources/examples/minimal.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# m4_ignore(
44
echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
5-
exit 11 #)Created by argbash-init v2.8.0
5+
exit 11 #)Created by argbash-init v2.8.1
66
# ARG_OPTIONAL_SINGLE([option], o, [A option with short and long flags and default], [boo])
77
# ARG_OPTIONAL_BOOLEAN([print], , [A boolean option with long flag (and implicit default: off)])
88
# ARG_POSITIONAL_SINGLE([positional-arg], [Positional arg description], )

resources/examples/simple-parsing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ARGBASH_SET_INDENT([ ])
99
# ARGBASH_GO()
1010
# needed because of Argbash --> m4_ignore([
11-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
1212
# Argbash is a bash code generator used to get arguments parsing right.
1313
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1414

resources/examples/simple-wrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
22

3-
# DEFINE_SCRIPT_DIR()
3+
# DEFINE_SCRIPT_DIR()_DEFINE_SCRIPT_DIR([],[cd "$(dirname "${BASH_SOURCE[0]}")" && pwd])
44
# ARG_POSITIONAL_INF([directory],[Directories to go through],[1])
55
# ARG_OPTIONAL_SINGLE([glob],[],[What files to match in the directory],[*])
66
# ARGBASH_WRAP([simple-parsing],[filename])
77
# ARG_HELP([This program tells you size of specified files in given directories in units you choose.])
88
# ARGBASH_SET_INDENT([ ])
99
# ARGBASH_GO()
1010
# needed because of Argbash --> m4_ignore([
11-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
1212
# Argbash is a bash code generator used to get arguments parsing right.
1313
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1414

@@ -135,7 +135,7 @@ assign_positional_args 1 "${_positionals[@]}"
135135

136136
# OTHER STUFF GENERATED BY Argbash
137137
_args_simple_parsing=("${_args_simple_parsing_opt[@]}" "${_args_simple_parsing_pos[@]}")
138-
script_dir="$(cd "$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")" && pwd)" || die "Couldn't determine the script's running directory, which probably matters, bailing out" 2
138+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" || die "Couldn't determine the script's running directory, which probably matters, bailing out" 2
139139

140140
### END OF CODE GENERATED BY Argbash (sortof) ### ])
141141
# [ <-- needed because of Argbash

resources/examples/simple.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

3-
# DEFINE_SCRIPT_DIR([])
3+
# DEFINE_SCRIPT_DIR([])_DEFINE_SCRIPT_DIR([],[cd "$(dirname "${BASH_SOURCE[0]}")" && pwd])
44
# INCLUDE_PARSING_CODE([simple-parsing.sh])
55
# ARGBASH_GO()
66
# needed because of Argbash --> m4_ignore([
7-
### START OF CODE GENERATED BY Argbash v2.8.0 one line above ###
7+
### START OF CODE GENERATED BY Argbash v2.8.1 one line above ###
88
# Argbash is a bash code generator used to get arguments parsing right.
99
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1010

1111
# OTHER STUFF GENERATED BY Argbash
12-
script_dir="$(cd "$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")" && pwd)" || die "Couldn't determine the script's running directory, which probably matters, bailing out" 2
12+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" || die "Couldn't determine the script's running directory, which probably matters, bailing out" 2
1313
. "$script_dir/simple-parsing.sh" # '.' means 'source'
1414

1515

src/stuff.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ argbash_api([DEFINE_SCRIPT_DIR_GNU], [m4_do(
112112
dnl
113113
dnl $1: Name of the holding variable
114114
dnl $2: Command to find the script dir
115-
argbash_api([_DEFINE_SCRIPT_DIR], [m4_do(
115+
m4_define([_DEFINE_SCRIPT_DIR], [m4_do(
116116
[[$0($@)]],
117117
[m4_define([SCRIPT_DIR_DEFINED])],
118118
[m4_pushdef([_sciptdir], m4_ifnblank([$1], [[$1]], _DEFAULT_SCRIPTDIR))],

src/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8.0
1+
2.8.1

0 commit comments

Comments
 (0)