build/release/*: use -T0 in xz, for multithreading
The -T option specifies how many threads xz shall use. The -T value of zero shall dictate that xz use so many threads as there are CPUs, on the host system. This will probably speed up the release process a bit. Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
b4b63adb50
commit
cec37747b7
|
@ -131,7 +131,7 @@ make_archive()
|
||||||
f="release/${version}/roms/${archivename}"
|
f="release/${version}/roms/${archivename}"
|
||||||
(
|
(
|
||||||
cd "${romdir%/bin/${target}}" || err "make_archive: can't cd to tmpdir"
|
cd "${romdir%/bin/${target}}" || err "make_archive: can't cd to tmpdir"
|
||||||
tar -c "bin/${target}/" | xz -9e > "${archivename}.tar.xz" || \
|
tar -c "bin/${target}/" | xz -T0 -9e > "${archivename}.tar.xz" || \
|
||||||
err "make_archive:cant make ${projectname}-${version}_${target##*/}"
|
err "make_archive:cant make ${projectname}-${version}_${target##*/}"
|
||||||
)
|
)
|
||||||
cp "${romdir%/bin/${target}}/${archivename}.tar.xz" "${f}.tar.xz" || \
|
cp "${romdir%/bin/${target}}/${archivename}.tar.xz" "${f}.tar.xz" || \
|
||||||
|
|
|
@ -196,7 +196,7 @@ create_release_archive()
|
||||||
err "create_release_archive: can't create ${dirname}/versiondate"
|
err "create_release_archive: can't create ${dirname}/versiondate"
|
||||||
printf "%s\n" "${projectname}" > "${dirname}/projectname" || \
|
printf "%s\n" "${projectname}" > "${dirname}/projectname" || \
|
||||||
err "create_release_archive: can't create ${dirname}/projectname"
|
err "create_release_archive: can't create ${dirname}/projectname"
|
||||||
tar -c "${dirname}/" | xz -9e >"${dirname}.tar.xz" || \
|
tar -c "${dirname}/" | xz -T0 -9e >"${dirname}.tar.xz" || \
|
||||||
err "create_release_archive: can't create ${dirname}.tar.xz"
|
err "create_release_archive: can't create ${dirname}.tar.xz"
|
||||||
rm -Rf "${dirname}/" || \
|
rm -Rf "${dirname}/" || \
|
||||||
err "create_release_archive 5: !rm -Rf ${dirname}/"
|
err "create_release_archive 5: !rm -Rf ${dirname}/"
|
||||||
|
|
Loading…
Reference in New Issue