diff options
| author | Christian Hesse <mail@eworm.de> | 2017-06-01 19:45:15 +0200 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2017-06-01 22:46:18 +0200 |
| commit | 6ad1a9739fe685e2ed9ca2c515b15e772f3f12b2 (patch) | |
| tree | 5ea6e5de10fb656bc6a1e80787e5a56e02510d5d | |
| parent | 7f5cb5ec6e73eea7d7059a0055a8c503f2509371 (diff) | |
| download | vis-6ad1a9739fe685e2ed9ca2c515b15e772f3f12b2.tar.gz vis-6ad1a9739fe685e2ed9ca2c515b15e772f3f12b2.tar.xz | |
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
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
