diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-09-05 15:59:02 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-09-05 16:24:05 +0200 |
commit | 95ef108586566e61580820403248cbcdf96dc39d (patch) | |
tree | 377d7da2afd90e2e7493689ec74b58c52a0f0443 /scripts/lib/ptxd_lib_dgen.awk | |
parent | 8545abb6515b76f40b39c536a758b21ba670327e (diff) | |
download | ptxdist-95ef108586566e61580820403248cbcdf96dc39d.tar.gz ptxdist-95ef108586566e61580820403248cbcdf96dc39d.tar.xz |
ptxd_lib_dgen: strip white spaces from this_pkg
This is necessary to e.g. handle files with dos line breaks.
Otherwise this_pkg is '<pkg>\r' which causes all kinds of problems.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 5c385b300..e67eda0ee 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -89,7 +89,7 @@ $1 ~ /^[A-Z_]*PACKAGES-/ { this_PKG = gensub(/^[A-Z_]*PACKAGES-\$\(PTXCONF_([^\)]*)\)/, "\\1", "g", $1); this_PKG = gensub(/^[A-Z0-9_]*-\$\(PTXCONF_([^\)]*)\)/, "\\1", "g", this_PKG); - is_pkg = this_pkg = $2; + is_pkg = this_pkg = gensub(/^[[:space:]]*\<(.*)\>[[:space:]]*$/,"\\1","", $2); if (this_pkg ~ /[A-Z]+/) { print \ "\n" \ |