Skip to content

Commit

Permalink
added missing 'grep -v ^_'
Browse files Browse the repository at this point in the history
  • Loading branch information
fros4943 committed Nov 13, 2007
1 parent 508c258 commit 7738b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/msp430-make-symbols
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7738b86

Please sign in to comment.