d460e8df37
The purpose of LZMA utils is to make the usage of LZMA compression easy on *NIX based systems. The average compression ratio is usually 30% better than 'gzip --best' and 15% better than 'bzip2 --best'. Some files can be compressed even over 50% smaller than with gzip. (read DESCR for more...) thanks to todd@ for testing on 7 archs, and to everyone else who tested. help/ok naddy@, ok alek@, and before the latest tweaks: ok todd@
17 lines
634 B
Plaintext
17 lines
634 B
Plaintext
$OpenBSD: patch-utils_lzmash,v 1.1.1.1 2006/01/30 13:29:00 steven Exp $
|
|
--- utils/lzmash.orig Tue Jan 24 10:09:07 2006
|
|
+++ utils/lzmash Tue Jan 24 10:10:21 2006
|
|
@@ -570,10 +570,10 @@ if [ $USE_STDOUT = 0 -a $TEST_ONLY = 0 ]
|
|
FILE_INFO=$(ls -dLln -- "$SOURCE" \
|
|
| tr -s ' ' | cut -f 1,3,4 -d ' ')
|
|
chown "$(echo "$FILE_INFO" | cut -f 2,3 -d ' ' \
|
|
- | tr ' ' ':')" -- "$TARGET"
|
|
+ | tr ' ' ':')" "$TARGET"
|
|
chmod "$(echo "$FILE_INFO" | sed \
|
|
's/^.\(...\)\(...\)\(...\).*$/u=\1,g=\2,o=\3/;s/-//g')"\
|
|
- -- "$TARGET"
|
|
+ "$TARGET"
|
|
touch -cr "$SOURCE" -- "$TARGET"
|
|
fi
|
|
[ $KEEP_FILE = 0 ] && rm -f -- "$SOURCE"
|