summaryrefslogtreecommitdiff
path: root/embedded-test.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-08-02 12:41:28 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2018-08-02 12:41:28 +0000
commit5199f32c38c3051649c8211ccf374ae748aa81e0 (patch)
tree79cf8fb5dacb8cc3454f8973bf9eca060bbbb566 /embedded-test.sh
parentb8831d67b63cc83e8cfc8d2c7fe91bf3c3ed5328 (diff)
Remove tmp dirs after source tarball creation.
This avoids filling up /tmp with useless source trees.
Diffstat (limited to 'embedded-test.sh')
-rwxr-xr-xembedded-test.sh10
1 files 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