Skip to content

Commit 787e97e

Browse files
committed
make_chm: add tar.xz in addition to 7z archives
Close #26
1 parent 8c0cf91 commit 787e97e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make_chm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ sed "s/cppreference\.chm/cppreference-zh-${VERSION}\.chm/" cppreference.hhp > "c
6565
# Compile and package UTF-8 version
6666
"${HHC}" "cppreference-zh-${VERSION}.hhp"
6767
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project.7z" "cppreference-zh-${VERSION}.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
68+
tar caf "cppreference-zh-${VERSION}-chm-project.tar.xz" "cppreference-zh-${VERSION}.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
6869

6970
# Convert HTML to GBK
7071
mv chmhelp chmhelp1
@@ -81,4 +82,5 @@ sed "s/cppreference\.chm/cppreference-zh-${VERSION}-gbk\.chm/" cppreference.hhp
8182

8283
# Compile and package GBK version
8384
"${HHC}" "cppreference-zh-${VERSION}-gbk.hhp"
84-
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project-gbk.7z" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
85+
"${_7Z}" a -mx9 "cppreference-zh-${VERSION}-chm-project-gbk.7z" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*
86+
tar caf "cppreference-zh-${VERSION}-chm-project-gbk.tar.xz" "cppreference-zh-${VERSION}-gbk.hhp" cppreference.{hhc,hhk} hh{a.dll,c.exe} chmhelp/*

0 commit comments

Comments
 (0)