vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 4f702d9a6acebb87ea094a3f1ee21a8475f9fac5 parent 32e18c5ef7e1a7d5582b016d7c0cf5d6cfdd9574 Author: Christian Hesse <mail@eworm.de> Date: Mon, 29 Aug 2022 14:02:07 +0200 build: simplify generating single payload We can make `od` skip the address radix, so `sed` does not need to remove it. Diffstat:
| M | Makefile | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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' >> $@