From 5199f32c38c3051649c8211ccf374ae748aa81e0 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Thu, 2 Aug 2018 12:41:28 +0000 Subject: Remove tmp dirs after source tarball creation. This avoids filling up /tmp with useless source trees. --- embedded-test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/embedded-test.sh b/embedded-test.sh index da6a55d..fe8f10c 100755 --- a/embedded-test.sh +++ b/embedded-test.sh @@ -1695,7 +1695,7 @@ for lib in ${libc}; do cp -a $libcsource $usrc/$libver mkdir -p $topdir/openadk/dl 2>/dev/null rm $topdir/openadk/dl/${libver}.tar.xz 2>/dev/null - (cd $usrc && tar cJf $topdir/openadk/dl/${libver}.tar.xz ${libver} ) + (cd $usrc && tar cJf $topdir/openadk/dl/${libver}.tar.xz ${libver} && rm -rf $usrc) touch $topdir/openadk/dl/${libver}.tar.xz.nohash # we need to clean system, when external source is used if [ $noclean -eq 0 ]; then @@ -1715,7 +1715,7 @@ for lib in ${libc}; do (cd $usrc && mv binutils-* binutils-git) mkdir -p $topdir/openadk/dl 2>/dev/null rm $topdir/openadk/dl/binutils-git.tar.xz 2>/dev/null - (cd $usrc && tar cJf $topdir/openadk/dl/binutils-git.tar.xz binutils-git) + (cd $usrc && tar cJf $topdir/openadk/dl/binutils-git.tar.xz binutils-git && rm -rf $usrc) touch $topdir/openadk/dl/binutils-git.tar.xz.nohash # we need to clean system, when external source is used if [ $noclean -eq 0 ]; then @@ -1733,7 +1733,7 @@ for lib in ${libc}; do cp -a $gccsource $usrc/gcc-git mkdir -p $topdir/openadk/dl 2>/dev/null rm $topdir/openadk/dl/gcc-git.tar.xz 2>/dev/null - (cd $usrc && tar cJf $topdir/openadk/dl/gcc-git.tar.xz gcc-git) + (cd $usrc && tar cJf $topdir/openadk/dl/gcc-git.tar.xz gcc-git && rm -rf $usrc) touch $topdir/openadk/dl/gcc-git.tar.xz.nohash # we need to clean system, when external source is used if [ $noclean -eq 0 ]; then @@ -1751,7 +1751,7 @@ for lib in ${libc}; do cp -a $gdbsource $usrc/gdb-git mkdir -p $topdir/openadk/dl 2>/dev/null rm $topdir/openadk/dl/gdb-git.tar.xz 2>/dev/null - (cd $usrc && tar cJf $topdir/openadk/dl/gdb-git.tar.xz gdb-git) + (cd $usrc && tar cJf $topdir/openadk/dl/gdb-git.tar.xz gdb-git && rm -rf $usrc) touch $topdir/openadk/dl/gdb-git.tar.xz.nohash # we need to clean system, when external source is used if [ $noclean -eq 0 ]; then @@ -1770,7 +1770,7 @@ for lib in ${libc}; do cp -a $kernelsource $usrc/linux-git mkdir -p $topdir/openadk/dl 2>/dev/null rm $topdir/openadk/dl/linux-git.tar.xz 2>/dev/null - (cd $usrc && tar cJf $topdir/openadk/dl/linux-git.tar.xz linux-git) + (cd $usrc && tar cJf $topdir/openadk/dl/linux-git.tar.xz linux-git && rm -rf $usrc) touch $topdir/openadk/dl/linux-git.tar.xz.nohash # we need to clean system, when external source is used if [ $noclean -eq 0 ]; then -- cgit v1.2.3