summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSean Whitton2016-01-17 13:18:32 -0700
committerJoey Hess2016-01-18 13:15:03 -0400
commitd4abec5bd37abab84923b3d91f50404512c09b74 (patch)
tree25c74fa4f9fb1d29795981367a7c3c090163a564 /Makefile
parent54234525d1ab376699981ef0fca1db693a7e4c9d (diff)
reset mtime on files bundled by git
(cherry picked from commit 6735b56eb8cdfd5cc2ddd3ae040fea4ae2b91c1e)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 805bbd2b..5621c7a7 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,8 @@ install:
cat dist/propellor-*.tar.gz | (cd dist/gittmp && tar zx --strip-components=1)
# cabal sdist does not preserve symlinks, so copy over file
cd dist/gittmp && for f in $$(find -type f); do rm -f $$f; cp -a ../../$$f $$f; done
+ # reset mtime on files in git bundle so bundle is reproducible
+ find dist/gittmp -print0 | xargs -0r touch --no-dereference --date="$(DATE)"
export GIT_AUTHOR_NAME=build \
&& export GIT_AUTHOR_EMAIL=build@buildhost \
&& export GIT_COMMITTER_NAME=build \