This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8051

-- gerrit

commit df3348568586f845db7c99bf157f539f46da3356
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Thu Dec 14 22:05:52 2023 +0100

    helper/bin2char: drop trailing empty line
    
    For unknown reasons, the coreutils tool 'od' on MacOS outputs an
    extra empty line, which appears in the new auto-generated files.
    
    Modify the script bin2char.sh to drop every empty line.
    
    Change-Id: Id835fecadb58ad4ddfc11ef9f9a2e8d75c5dffe9
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/helper/bin2char.sh b/src/helper/bin2char.sh
index b89433d869..cf94bee29c 100755
--- a/src/helper/bin2char.sh
+++ b/src/helper/bin2char.sh
@@ -12,4 +12,4 @@
 }
 
 echo "/* Autogenerated with $0 */"
-od -v -A n -t x1 | sed 's/ *\(..\) */0x\1,/g'
+od -v -A n -t x1 | sed 's/ *\(..\) */0x\1,/g;/^$/d'

-- 

Reply via email to