Skip to content

Commit

Permalink
Use CHANGES date instead of build date
Browse files Browse the repository at this point in the history
This commit improves build reproducibility of VIT.
See https://reproducible-builds.org/ for why this is good.
This date call only works with GNU date and BSD date.

It does not really matter that the CHANGES file is not always
updated. It matters that it does not change for release tarballs
that are used to build packages. And developers can easily touch
CHANGES to update it for a test build.

Patch from Bernhard M. Wiedemann.
  • Loading branch information
scottkosty committed Jan 15, 2018
1 parent 2d6ec2c commit 71fd605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
fi && \
cat vit.pl | grep -v ^require \
| sed "s:%prefix%:$(PREFIX):" \
| sed "s/%BUILD%/$(VERSION) built `date`/" \
| sed "s/%BUILD%/$(VERSION) built after `date -r CHANGES`/" \
| sed "s/%VERSION%/$(VERSION)$${GITHASH}/" \
| sed "s:%TASK%:$(TASK):" \
| sed "s:%CLEAR%:$(CLEAR):" \
Expand Down

0 comments on commit 71fd605

Please sign in to comment.