Skip to content

Commit

Permalink
When building a tarball, avoid trying to copy submodules
Browse files Browse the repository at this point in the history
submodules are directories that we don't want in our tarballs, so
avoid them.

Reviewed-by: Andy Polyakov <[email protected]>
(Merged from openssl#4178)
  • Loading branch information
levitte committed Aug 17, 2017
1 parent 296cbb5 commit 5b7b011
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Configurations/unix-Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,11 @@ tar:
DISTDIR=$(NAME); \
mkdir -p $$TMPDIR/$$DISTDIR; \
(cd $(SRCDIR); \
excl_re=`git submodule status | sed -e 's/^.//' | cut -d' ' -f2`; \
excl_re="^(fuzz/corpora|`echo $$excl_re | sed -e 's/ /$$|/g'`\$$)"; \
echo "$$excl_re"; \
git ls-tree -r --name-only --full-tree HEAD \
| grep -v '^fuzz/corpora' \
| grep -v -E "$$excl_re" \
| while read F; do \
mkdir -p $$TMPDIR/$$DISTDIR/`dirname $$F`; \
cp $$F $$TMPDIR/$$DISTDIR/$$F; \
Expand Down

0 comments on commit 5b7b011

Please sign in to comment.