From ac695437b5a672f9eb0d0e63655cb48286e3b2c0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Feb 2013 19:08:09 +0100 Subject: fix tarcopy call for base --- remote/setup_tools | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'remote/setup_tools') diff --git a/remote/setup_tools b/remote/setup_tools index 2df84a5d..bf3f5157 100755 --- a/remote/setup_tools +++ b/remote/setup_tools @@ -40,7 +40,7 @@ copyfileswithdependencies () cd build - COPYFILES_LIST="list_wanted_stage3.2" + local COPYFILES_LIST="list_wanted_stage3.2" [ -e ${COPYFILES_LIST} ] && rm ${COPYFILES_LIST} @@ -151,9 +151,7 @@ copyfileswithdependencies () if [ -s "$COPYFILES_LIST" ]; then local CLISTCOUNT=$(cat "$COPYFILES_LIST" | wc -l) pinfo "Copying $CLISTCOUNT files to stage 3.2 target directory." - tar -cp $(cat ${COPYFILES_LIST}|sort -u) | tar -xp -C "${INIT_DIR}" - local RET=$? - [ "x$RET" != "x0" ] && perror "Could not tar-copy to $INIT_DIR" + tarcopy "$(cat ${COPYFILES_LIST}|sort -u)" "${INIT_DIR}" fi unset REQUIRED_BINARIES unset REQUIRED_LIBRARIES @@ -176,9 +174,7 @@ get_basic_libs () { BASICLIBS="${BASICLIBS} $i $(readlink -f "$i")" fi done - tar -cp ${BASICLIBS} | tar -xp -C ${INIT_DIR} - local RET=$? - [ "x$RET" != "x0" ] && perror "Could not tar-copy to $INIT_DIR" + tarcopy "${BASICLIBS}" "${INIT_DIR}" } generate_stage32 () { -- cgit v1.2.3-55-g7522