Skip to content
Snippets Groups Projects
Commit ae0bbee3 authored by Christian Engwer's avatar Christian Engwer
Browse files

[dunecontrol]

fix incompatibility with mawk

- explicitly state list of whitespaces
- patch by Ansgar Burchardt

[[Imported from SVN: r7452]]
parent be518f83
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ Copyright holders: ...@@ -2,7 +2,7 @@ Copyright holders:
2003--2010 Peter Bastian 2003--2010 Peter Bastian
2004--2012 Markus Blatt 2004--2012 Markus Blatt
2011--2012 Ansgar Burchardt 2011--2013 Ansgar Burchardt
2004--2005 Adrian Burri 2004--2005 Adrian Burri
2006--2012 Andreas Dedner 2006--2012 Andreas Dedner
2003 Marc Droske 2003 Marc Droske
......
...@@ -43,7 +43,7 @@ BLANK="$space$tab" ...@@ -43,7 +43,7 @@ BLANK="$space$tab"
# paramters: # paramters:
# $1 file to read # $1 file to read
# #
PARSER_TRIM="awk '{gsub(/^[[:space:]]+| +$/,\"\");printf(\"%s\", \$0);}'" PARSER_TRIM="awk '{gsub(/^[ \\t]+|[ \\t]+$/,\"\");printf(\"%s\", \$0);}'"
parse_control() { parse_control() {
# check file existence # check file existence
if test ! -f "$1" -o "$(basename $1)" != "$CONTROL"; then if test ! -f "$1" -o "$(basename $1)" != "$CONTROL"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment