summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess2015-07-10 22:31:48 -0400
committerJoey Hess2015-07-10 22:31:48 -0400
commit7593e76c966a8b3990efa76e6dfe3ac21a8bcaed (patch)
tree2c47204553199cdfaf0c8c6beed4f454397a6351 /Makefile
parent71265a2d6f8ba2071504c45c938a65c0f3cc1546 (diff)
Fix make install target to work even when git is not configured.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2cf15b98..5b63b1ff 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,12 @@ 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
+ export GIT_AUTHOR_NAME=build && \
+ export GIT_AUTHOR_EMAIL=build@buildhost && \
+ export GIT_COMMITTER_NAME=build && \
+ export GIT_COMMITTER_EMAIL=build@buildhost && \
cd dist/gittmp && git init && \
- git add . \
+ && git add . \
&& git commit -q -m "distributed version of propellor" \
&& git bundle create $(DESTDIR)/usr/src/propellor/propellor.git master HEAD \
&& git show-ref master --hash > $(DESTDIR)/usr/src/propellor/head