diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-07-07 20:20:41 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-07-07 20:20:41 +0000 |
commit | c2b08e3304fbc2dde09b31137cc6e83d50e0b2ed (patch) | |
tree | 4703993e89a8ec42daf97bdb69dc5a49706bfc0a /scripts/lib/ptxd_make_import.awk | |
parent | 5aec6cfad8e7f649ce4cc7feb7f52762a47eeff5 (diff) | |
download | ptxdist-c2b08e3304fbc2dde09b31137cc6e83d50e0b2ed.tar.gz ptxdist-c2b08e3304fbc2dde09b31137cc6e83d50e0b2ed.tar.xz |
[ptxd_make_import] fix problem with "-" in prefix
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10947 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/lib/ptxd_make_import.awk')
-rwxr-xr-x | scripts/lib/ptxd_make_import.awk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_import.awk b/scripts/lib/ptxd_make_import.awk index 003f87391..00a4a304c 100755 --- a/scripts/lib/ptxd_make_import.awk +++ b/scripts/lib/ptxd_make_import.awk @@ -29,6 +29,7 @@ BEGIN { prefix_lc = tolower(prefix); prefix = toupper(prefix_lc) "_"; + prefix = gensub(/-/, "_", "g", prefix); prefix_file = "config/" prefix_lc; in_path = gensub(/^(.*)\/.*$/, "\\1", "g", in_file); |