From d3fd6693437ec1d3afdda7093c2351329b78b29b Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Fri, 30 Aug 2024 01:08:37 +0200 Subject: [PATCH] elf2tag: Add -h and --help arguments --- src/elf2tag | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/elf2tag b/src/elf2tag index 28dde7b8e..ed4993d25 100755 --- a/src/elf2tag +++ b/src/elf2tag @@ -10,14 +10,16 @@ for pgm in sort grep awk avr-objdump avr-nm; do hash $pgm 2>/dev/null || { echo "$progname: $pgm does not seem to be installed, exiting"; exit 1; } done -if [ "$1" == "" ]; then -cat <.elf Function: output a tagfile suitable for the avrdude disasm -t= command Options: none END -exit 1 -fi + exit 1 + ;; +esac echo "# Automatically generated tagfile via ${progname} ${1}" avr-objdump -d "$1" | grep '<.*>:' | awk '{