Permalink
Browse files

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.
  • Loading branch information...
landley committed Jan 1, 2008
1 parent 1cd4834 commit 8b3a66755d3081c9e6f230fd16c6af86f4b74f07
Showing with 3 additions and 3 deletions.
  1. +3 −3 include.sh
@@ -62,7 +62,7 @@ function extract()
[ "$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 @@ function setupfor()
{
# 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 @@ function setupfor()
echo "Snapshot '$1'..."
cd "${WORK}" &&
mkdir -p "${CURSRC}" &&
cp -sfR "${SRCTREE}/$1/"* "${CURSRC}"
cp -lfR "${SRCTREE}/$1/"* "${CURSRC}"
[ $? -ne 0 ] && dienow

0 comments on commit 8b3a667

Please sign in to comment.