Skip to content
Snippets Groups Projects
Commit c469f5f2 authored by David Godlove's avatar David Godlove Committed by GitHub
Browse files

Merge pull request #1083 from bmwiedemann/tar

Make tar file creation reproducible
parents 3e338d75 6916fce9
Branches
No related merge requests found
......@@ -41,7 +41,8 @@ environment.tar:
ln -sf .singularity.d/actions/run newroot/.run
ln -sf .singularity.d/actions/shell newroot/.shell
ln -sf .singularity.d/actions/test newroot/.test
cd newroot; tar czf ../environment.tar . --owner=0 --group=0
[ -n "${SOURCE_DATE_EPOCH}" ] && tar --help|grep -q sort= && taropts="--sort=name --clamp-mtime --mtime @${SOURCE_DATE_EPOCH} --format=gnu" ;\
cd newroot; tar c . --owner=0 --group=0 $$taropts | gzip -n9 > ../environment.tar
rm -rf newroot
MAINTAINERCLEANFILES = Makefile.in
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment