Skip to content
Snippets Groups Projects
Commit a448bc22 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

bugfix: on cygwin this script started to insert carriage-return signs in the...

bugfix: on cygwin this script started to insert carriage-return signs in the middle of generated code.

Signed-off-by: default avatarkristof <Kristof.Szabados@ericsson.com>
parent 9d90733b
No related branches found
No related tags found
No related merge requests found
...@@ -150,14 +150,14 @@ _EOF ...@@ -150,14 +150,14 @@ _EOF
# #
-fh) -fh)
cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
sort | tr '[:lower:]' '[:upper:]' | $AWK ' sort | tr '[:lower:]' '[:upper:]' | tr -d "\r"| $AWK '
BEGIN { BEGIN {
printf("/* Automatically generated file, do not edit */\n"); printf("/* Automatically generated file, do not edit */\n");
printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n"); printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
count = 0; count = 0;
} }
{ {
printf("#define\t%-30.30s\t%3d\n", $1, count++); printf("#define\t%-30.30s%3d\n", $1, count++);
} }
END { END {
printf("#define\t%-30.30s\t%3d\n", "EL_NUM_FCNS", count); printf("#define\t%-30.30s\t%3d\n", "EL_NUM_FCNS", count);
...@@ -171,7 +171,8 @@ _EOF ...@@ -171,7 +171,8 @@ _EOF
# generate fcns.c from various .h files # generate fcns.c from various .h files
# #
-fc) -fc)
cat $FILES | $AWK '/el_action_t/ { print $3 }' | sort | $AWK ' cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
sort | tr -d "\r" | $AWK '
BEGIN { BEGIN {
printf("/* Automatically generated file, do not edit */\n"); printf("/* Automatically generated file, do not edit */\n");
printf("#include \"config.h\"\n#include \"el.h\"\n"); printf("#include \"config.h\"\n#include \"el.h\"\n");
......
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