mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Make lrztar/lrzuntar no longer use temporary files.
This commit is contained in:
parent
fb526eac01
commit
381bc35591
|
|
@ -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
|
be used and then aborting to a minimum value should it still be too much
|
||||||
apparent ram.
|
apparent ram.
|
||||||
* Big Endian fixes.
|
* Big Endian fixes.
|
||||||
|
* Change lrztar and lrzuntar to not use temporary files.
|
||||||
* Countless other fixes, documentation and cleanups.
|
* Countless other fixes, documentation and cleanups.
|
||||||
|
|
||||||
MARCH 2011, version 0.571 Con Kolivas
|
MARCH 2011, version 0.571 Con Kolivas
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ aborting to a nominal minimum.
|
||||||
A new build configuration system which should be more robust and provides
|
A new build configuration system which should be more robust and provides
|
||||||
neater output during compilation.
|
neater output during compilation.
|
||||||
lrzip should work again on big endian hardware.
|
lrzip should work again on big endian hardware.
|
||||||
|
lrztar / lrzuntar will no longer use temporary files.
|
||||||
|
|
||||||
lrzip-0.571
|
lrzip-0.571
|
||||||
|
|
||||||
|
|
|
||||||
5
lrztar
5
lrztar
|
|
@ -53,7 +53,7 @@ function lrztar_local() {
|
||||||
}
|
}
|
||||||
[[ ${s%/*} != $s ]] && i="${s%/*}/" || i="./"
|
[[ ${s%/*} != $s ]] && i="${s%/*}/" || i="./"
|
||||||
tname="$i$tname"
|
tname="$i$tname"
|
||||||
lrzip $p "$i$fname" && tar xf "$tname"
|
lrzip $p "$i$fname" -o - | tar x
|
||||||
x=$?
|
x=$?
|
||||||
} || {
|
} || {
|
||||||
fname="$(basename "$s")"; tname="$fname.tar"
|
fname="$(basename "$s")"; tname="$fname.tar"
|
||||||
|
|
@ -61,10 +61,9 @@ function lrztar_local() {
|
||||||
printf "lrztar: $fname is already a .lrz file, aborting\n"
|
printf "lrztar: $fname is already a .lrz file, aborting\n"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
tar cf "$tname" "$s" && lrzip $p "$tname"
|
tar c "$s" | lrzip $p -o "$tname".lrz
|
||||||
x=$?
|
x=$?
|
||||||
}
|
}
|
||||||
rm -rf "$tname" &> /dev/null
|
|
||||||
! ((x)) && ((v_D)) && rm -rf "$s" &> /dev/null
|
! ((x)) && ((v_D)) && rm -rf "$s" &> /dev/null
|
||||||
return $x
|
return $x
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue