From 9c0251e644fab2fd728f2708629a72907cfcce57 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 29 Aug 2022 14:02:07 +0200 Subject: build: simplify generating single payload We can make `od` skip the address radix, so `sed` does not need to remove it. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c862643..d1c2ca7 100644 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ vis-single-payload.inc: $(EXECUTABLES) lua/* echo 'static unsigned char vis_single_payload[] = {' >> $@ $(TAR) --mtime='2014-07-15 01:23Z' --owner=0 --group=0 --numeric-owner --mode='a+rX-w' -c \ $(EXECUTABLES) $$(find lua -name '*.lua' | LC_ALL=C sort) | xz -T 1 | \ - od -t x1 -v | sed -e 's/^[0-9a-fA-F]\{1,\}//g' -e 's/\([0-9a-f]\{2\}\)/0x\1,/g' >> $@ + od -t x1 -A n -v | sed 's/\([0-9a-f]\{2\}\)/0x\1,/g' >> $@ echo '};' >> $@ echo '#endif' >> $@ -- cgit v1.2.3