summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-01-26 01:40:13 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-26 08:26:27 +0100
commit2b0e65d0f6cacbc5b6217b650fa050eb85d39e96 (patch)
treef520fe190ce803d46d7c96b1cdf844609ecbaa88 /Makefile.in
parentc5eed2775eced6f324516c0fcb981c67e2d04fc3 (diff)
Base the tarfile list of files on git ls-files instead of find
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 842da88251..a973031aaa 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -485,15 +485,13 @@ TABLE: Configure Configurations/*.conf
# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal
# tar does not support the --files-from option.
TAR_COMMAND=$(TAR) $(TARFLAGS) --files-from $(TARFILE).list \
- --owner 0 --group 0 \
+ --owner 0 --group 0 \
--transform 's|^|$(NAME)/|' \
-cvf -
$(TARFILE).list:
- find * \! -name STATUS \! -name TABLE \! -name '*.o' \! -name '*.a' \
- \! -name '*.so' \! -name '*.so.*' \! -name 'openssl' \
- \! -name '*test' \! -name '.#*' \! -name '*~' \! -type l \
- | sort > $(TARFILE).list
+ git diff --quiet HEAD
+ git ls-files | sort > $(TARFILE).list
tar: $(TARFILE).list
find . -type d -print | xargs chmod 755