From 7738b86b466bdfa7a4d1d134bfc2b19a15c54bb3 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 13 Nov 2007 06:06:36 +0000 Subject: [PATCH] added missing 'grep -v ^_' --- tools/msp430-make-symbols | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/msp430-make-symbols b/tools/msp430-make-symbols index 605fd54c0..e434d3bc0 100755 --- a/tools/msp430-make-symbols +++ b/tools/msp430-make-symbols @@ -14,7 +14,7 @@ echo \#include '"symbols.h"' > symbols.c echo "const struct symbols symbols[$SYMBOLS] = {" >> symbols.c if [ -f $* ] ; then - $NM $* | perl -ne 'print ".global $2\n$2 = 0x$1\n" if(/([0-9a-f]+) [ABDRST] (.+)$/);' | grep -v _reset_vector | grep = | perl -ne 'print "{\"$1\", (char *)$2},\n" if(/(\w+) = (\w+)/)' | sort >> symbols.c + $NM $* | perl -ne 'print ".global $2\n$2 = 0x$1\n" if(/([0-9a-f]+) [ABDRST] (.+)$/);' | grep -v ^_ | grep -v _reset_vector | grep = | perl -ne 'print "{\"$1\", (char *)$2},\n" if(/(\w+) = (\w+)/)' | sort >> symbols.c # msp430-nm $* | perl -ne 'print ".global $2\n$2 = 0x$1\n" if(/([0-9a-f]+) [ABDRST] (.+)$/);' | grep -v ^_ | grep -v _reset_vector | grep = | perl -ne 'print "{\"$1\", (char *)$2},\n" if(/(\w+) = (\w+)/)' | sort status=$? fi