Browse Source

s3.TUP cleanup build directory (v0.11.5)

Remove temporary toolchain build directory after successful build to save disk space
pull/27/head
WXbet 5 years ago
parent
commit
06c1a1d544
  1. 6
      support/functions/_plugin_update_toolchain

6
support/functions/_plugin_update_toolchain

@ -3,7 +3,7 @@
#simplebuild_plugin tcupdate
tcupdate(){
pversion="0.11.4";
pversion="0.11.5";
pname="s3.TUP";
pdesc="Plugin $pname v$pversion";
configname="$configdir/plugin_update_toolchain.config";
@ -349,6 +349,10 @@ _create_tc(){
#get target from build.log
target=$(sed -n -e '/target = / s/.*\= *//p' "$ctsrcdir/build.log");
#get CT_BUILD_TOP_DIR aka temporary toolchain build directory from build.log and delete it to save disk space
buildtopdir=$(sed -n -e '/CT_BUILD_TOP_DIR=\// s/.*\= *//p' "$ctsrcdir/build.log");
[ -d "$buildtopdir" ] && rm -rf "$buildtopdir" 2>/dev/null;
#compress toolchain
_compress "$dldir/Toolchain-$tpl.tar.xz" "$tcdir/$tpl" | "$gui" "$st_" "$bt_" "$title_ - \Z0$pdesc\Zn" "--colors" "--title" " -[ Compress cross toolchain $tpl to Toolchain-$tpl.tar.xz ]- " "$pb_" "$_lines" "$_cols";

Loading…
Cancel
Save