@@ -872,37 +872,8 @@ tags TAGS: FORCE
872
872
873
873
# Release targets (note: only available on Unix) #####################
874
874
875
- # If your tar command doesn't support --owner and --group, make sure to
876
- # use one that does, for example GNU tar
877
- TAR_COMMAND=$(TAR) $(TARFLAGS) --owner 0 --group 0 -cf -
878
- PREPARE_CMD=:
879
875
tar:
880
- set -e; \
881
- TMPDIR=/var/tmp/openssl-copy.$$$$; \
882
- DISTDIR=$(NAME); \
883
- mkdir -p $$TMPDIR/$$DISTDIR; \
884
- (cd $(SRCDIR); \
885
- excl_re=`git submodule status | sed -e 's/^.//' | cut -d' ' -f2`; \
886
- excl_re="^(fuzz/corpora|Configurations/.*\.norelease\.conf|`echo $$excl_re | sed -e 's/ /$$|/g'`\$$)"; \
887
- echo "$$excl_re"; \
888
- git ls-tree -r --name-only --full-tree HEAD \
889
- | egrep -v "$$excl_re" \
890
- | while read F; do \
891
- mkdir -p $$TMPDIR/$$DISTDIR/`dirname $$F`; \
892
- cp $$F $$TMPDIR/$$DISTDIR/$$F; \
893
- done); \
894
- (cd $$TMPDIR/$$DISTDIR; \
895
- $(PREPARE_CMD); \
896
- find . -type d -print | xargs chmod 755; \
897
- find . -type f -print | xargs chmod a+r; \
898
- find . -type f -perm -0100 -print | xargs chmod a+x); \
899
- (cd $$TMPDIR; $(TAR_COMMAND) $$DISTDIR) \
900
- | (cd $(SRCDIR); gzip --best > $(TARFILE).gz); \
901
- rm -rf $$TMPDIR
902
- cd $(SRCDIR); ls -l $(TARFILE).gz
903
-
904
- dist:
905
- @$(MAKE) PREPARE_CMD='$(PERL) ./Configure dist' TARFILE="$(TARFILE)" NAME="$(NAME)" tar
876
+ $(SRCDIR)/util/mktar.sh --name='$(NAME)' --tarfile='$(TARFILE)'
906
877
907
878
# Helper targets #####################################################
908
879
0 commit comments