Base the tarfile list of files on git ls-files instead of find
authorRichard Levitte <levitte@openssl.org>
Tue, 26 Jan 2016 00:40:13 +0000 (01:40 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 26 Jan 2016 07:26:27 +0000 (08:26 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Makefile.in

index 842da882511600d0f6cb46a0d5f7845c5be18157..a973031aaa59d8873d5614ee97a947f91c90ce1c 100644 (file)
@@ -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