diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-06-12 12:26:34 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-06-12 12:26:34 +0000 |
commit | f9de8446a0a623936925d12812480fe86f5a9f71 (patch) | |
tree | 0b09a7e4ff02b7470479dd1a0a11eb9c5845f3f4 /Makefile.org | |
parent | d15711efc6c82d5483dcf73ac7fa3ec5deb2c24a (diff) |
Support building the distribution .tar file on platforms with limited
argument list length. This requires Gnu-tar. As we use the non-standard
"tardy" software anyway, it doesn't hurt too much to require Gnu-tar.
"make dist" will probably only be used by team-members anyway.
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.org b/Makefile.org index 85611709b1..5eb7b095a5 100644 --- a/Makefile.org +++ b/Makefile.org @@ -644,13 +644,19 @@ TABLE: Configure update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE +# Build distribution tar-file. As the list of files returned by "find" is +# pretty long, on several platforms a "too many arguments" error or similar +# would occur. Therefore the list of files is temporarily stored into a file +# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal +# tar does not support the --files-from option. tar: - @$(TAR) $(TARFLAGS) -cvf - \ - `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\ + find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \ + $(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \ tardy --user_number=0 --user_name=openssl \ --group_number=0 --group_name=openssl \ --prefix=openssl-$(VERSION) - |\ gzip --best >../$(TARFILE).gz; \ + rm -f ../$(TARFILE).list; \ ls -l ../$(TARFILE).gz tar-snap: |