dist: fix reproducible build from release tarball

Make it possible to rebuild an identical copy from a release tarball. It
was previously only possible from a checked out git repository.

- add release-tools.sh to dist
- keep Makefile.dist around to include it in dist
- regenerate tool_huge.c with the new version in dist
- fix the dist CI job to not do make clean like before

Closes #14336
This commit is contained in:
Daniel Stenberg 2024-08-01 13:51:43 +02:00
parent c73b80a3cd
commit 754acd1a9d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 26 additions and 17 deletions

View file

@ -35,8 +35,8 @@ jobs:
- run: ./configure --without-ssl --without-libpsl
name: 'configure'
- run: make V=1 && make V=1 clean
name: 'make and clean'
- run: make V=1
name: 'make'
- name: 'maketgz'
run: |
@ -45,7 +45,7 @@ jobs:
- name: 'maketgz reproducibility test'
run: |
mkdir run1; mv ./curl-99.98.97.* run1/
make V=1 && make V=1 clean
make V=1 clean && make V=1
SOURCE_DATE_EPOCH=1711526400 ./maketgz 99.98.97
mkdir run2; cp -p ./curl-99.98.97.* run2/
diff run1 run2