vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 23bef7e5b9acb4a69946122c1aa1ce65d5dd896f
parent bf365e9f6c2f2cec70f1853e47e1a8d71fce84b3
Author: Christian Hesse <mail@eworm.de>
Date:   Thu,  1 Jun 2017 19:45:15 +0200

build: produce reproducible self contained executable

Giving tar the parameter '--sort=name' sorts direcory entries, but keeps
single files as-is. So instead sort the list retrieved by find.

Also set the file mode...

Works for me. [TM] :D

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -79,9 +79,9 @@ vis-single-payload.inc: $(EXECUTABLES) lua/* echo '#ifndef VIS_SINGLE_PAYLOAD_H' > $@ echo '#define VIS_SINGLE_PAYLOAD_H' >> $@ echo 'static unsigned char vis_single_payload[] = {' >> $@ - tar --sort=name --mtime='2014-07-15 01:23Z' --owner=0 --group=0 --numeric-owner -c \ - $(EXECUTABLES) $$(find lua -name '*.lua') | xz -T 1 | od -t x1 -A none -v | \ - sed 's/\([0-9a-f]\+\)/0x\1,/g;$$s/,$$/ };/' >> $@ + 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 -A none -v | sed 's/\([0-9a-f]\+\)/0x\1,/g;$$s/,$$/ };/' >> $@ echo '#endif' >> $@ vis-single: vis-single.c vis-single-payload.inc