diff --git a/ChangeLog b/ChangeLog index 68b9d30..ae26b03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,7 @@ how big a block of memory to allocate by decreasing the number of threads to be used and then aborting to a minimum value should it still be too much apparent ram. * Big Endian fixes. +* Change lrztar and lrzuntar to not use temporary files. * Countless other fixes, documentation and cleanups. MARCH 2011, version 0.571 Con Kolivas diff --git a/WHATS-NEW b/WHATS-NEW index 055771f..43fb99d 100644 --- a/WHATS-NEW +++ b/WHATS-NEW @@ -25,6 +25,7 @@ aborting to a nominal minimum. A new build configuration system which should be more robust and provides neater output during compilation. lrzip should work again on big endian hardware. +lrztar / lrzuntar will no longer use temporary files. lrzip-0.571 diff --git a/lrztar b/lrztar index 7f69321..eb5bf7a 100755 --- a/lrztar +++ b/lrztar @@ -53,7 +53,7 @@ function lrztar_local() { } [[ ${s%/*} != $s ]] && i="${s%/*}/" || i="./" tname="$i$tname" - lrzip $p "$i$fname" && tar xf "$tname" + lrzip $p "$i$fname" -o - | tar x x=$? } || { fname="$(basename "$s")"; tname="$fname.tar" @@ -61,10 +61,9 @@ function lrztar_local() { printf "lrztar: $fname is already a .lrz file, aborting\n" return 1 } - tar cf "$tname" "$s" && lrzip $p "$tname" + tar c "$s" | lrzip $p -o "$tname".lrz x=$? } - rm -rf "$tname" &> /dev/null ! ((x)) && ((v_D)) && rm -rf "$s" &> /dev/null return $x }