aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2022-08-29 14:02:07 +0200
committerChristian Hesse <mail@eworm.de>2023-06-21 06:28:54 +0200
commit9c0251e644fab2fd728f2708629a72907cfcce57 (patch)
tree8cb866558c6e95ea15edaa167ba7b5d2ca6e3930 /Makefile
parentf80284f23124f5dff0c3e15480d8652399a7056e (diff)
downloadvis-9c0251e644fab2fd728f2708629a72907cfcce57.tar.gz
vis-9c0251e644fab2fd728f2708629a72907cfcce57.tar.xz
build: simplify generating single payload
We can make `od` skip the address radix, so `sed` does not need to remove it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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' >> $@