Skip to content

Commit

Permalink
Don't depend on git when generating source tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Oct 15, 2015
1 parent 164487a commit a7dd269
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion local.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ifeq ($(MAKECMDGOALS), dist)
dist-files += $(shell git ls-files)
# Make sure we are in repo root with `--git-dir`
dist-files += $(shell git --git-dir=.git ls-files || find * -type f)
endif

dist-files += configure config.h.in nix.spec
Expand Down
4 changes: 3 additions & 1 deletion release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ let

postUnpack = ''
# Clean up when building from a working tree.
git -C $sourceRoot clean -fd
if [[ -d $sourceRoot/.git ]]; then
git -C $sourceRoot clean -fd
fi
'';

preConfigure = ''
Expand Down

0 comments on commit a7dd269

Please sign in to comment.