From: Richard Levitte Date: Tue, 26 Jan 2016 00:40:13 +0000 (+0100) Subject: Base the tarfile list of files on git ls-files instead of find X-Git-Tag: OpenSSL_1_1_0-pre3~418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b0e65d0f6cacbc5b6217b650fa050eb85d39e96;p=openssl Base the tarfile list of files on git ls-files instead of find Reviewed-by: Rich Salz --- 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