# HG changeset patch # User Rob Landley # Date 1199178201 21600 # Node ID aa03feec947aa7a6882f333a38a336e82a425a41 # Parent d7efae83fa575ab8752b33cee3771e69d28a95db Minor tweaks: one error check was missed, use hard links instead of symlinks when snapshotting (much faster since it doesn't have to create new inodes), and rephrase tar command line so busybox tar works with it even when linked against uClibc. diff -r d7efae83fa57 -r aa03feec947a include.sh --- a/include.sh Mon Dec 31 14:53:07 2007 -0600 +++ b/include.sh Tue Jan 01 03:03:21 2008 -0600 @@ -62,7 +62,7 @@ [ "$1" != "${1/%\.tar\.gz/}" ] && DECOMPRESS="z" cd "${WORK}" && - { tar xv${DECOMPRESS}fC "${SRCDIR}/$1" "${BUILD}/temp" || dienow + { tar -xv${DECOMPRESS} -f "${SRCDIR}/$1" -C "${BUILD}/temp" || dienow } | dotprogress mv "${BUILD}/temp/"* "${SRCTREE}/${BASENAME}" && @@ -178,7 +178,7 @@ { # Make sure the source is already extracted and up-to-date. cd "${SRCDIR}" && - extract "${1}-"*.tar* + extract "${1}-"*.tar* || exit 1 # Set CURSRC @@ -192,7 +192,7 @@ echo "Snapshot '$1'..." cd "${WORK}" && mkdir -p "${CURSRC}" && - cp -sfR "${SRCTREE}/$1/"* "${CURSRC}" + cp -lfR "${SRCTREE}/$1/"* "${CURSRC}" [ $? -ne 0 ] && dienow