Skip to content

Commit d106fba

Browse files
committed
Change release to use xz for tar archives
This changes the release to use .tar.xz instead of .tar.gz archives for the HTML book and source archive, which reduces the archive size by a factor of 5 to 10. The QCH book doesn't really benefit from using xz but takes considerably longer to compress, so I'll leave this one.
1 parent b53268f commit d106fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ release: all
110110
# zip the distributable
111111
mkdir -p "cppreference-doc-$(VERSION)"
112112
cp -r $(DISTFILES) "cppreference-doc-$(VERSION)"
113-
tar czf "release/cppreference-doc-$(VERSION).tar.gz" "cppreference-doc-$(VERSION)"
113+
tar cJf "release/cppreference-doc-$(VERSION).tar.xz" "cppreference-doc-$(VERSION)"
114114
zip -qr "release/cppreference-doc-$(VERSION).zip" "cppreference-doc-$(VERSION)"
115115
rm -rf "cppreference-doc-$(VERSION)"
116116

117117
# zip the html output
118118
pushd "output"; \
119-
tar czf "../release/html-book-$(VERSION).tar.gz" "reference" \
119+
tar cJf "../release/html-book-$(VERSION).tar.xz" "reference" \
120120
"cppreference-doxygen-local.tag.xml" ; \
121121
zip -qr "../release/html-book-$(VERSION).zip" "reference" \
122122
"cppreference-doxygen-local.tag.xml" ; \

0 commit comments

Comments
 (0)