From 139986238a45e211b9bd52c2d655f321a06a578c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Fri, 26 Jun 2026 14:35:07 -0700 Subject: [PATCH] editors/dumpbuiltin.sh: make a little more user-friendly If no $NASM is defined and no nasm path has been given on the command line, default to "../nasm". Signed-off-by: H. Peter Anvin (Intel) --- editors/dumpbuiltin.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editors/dumpbuiltin.sh b/editors/dumpbuiltin.sh index 17181c75d..5ecfc32bf 100755 --- a/editors/dumpbuiltin.sh +++ b/editors/dumpbuiltin.sh @@ -10,9 +10,8 @@ tmp="$(mktemp -d)" [ -n "$tmp" ] || exit 1 -if [ -n "$1" ]; then - NASM="$1" -fi +NASM="${NASM:-../nasm}" +NASM="${1:-$NASM}" : > "$tmp/junk.asm" "$NASM" -f bin -o "$tmp/junk.bin" -Lsb -l "$tmp/junk.lst" "$tmp/junk.asm"