-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlzop.functions
More file actions
11 lines (9 loc) · 871 Bytes
/
lzop.functions
File metadata and controls
11 lines (9 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
# This file is part of shellfire compress. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/shellfire-dev/compress/master/COPYRIGHT. No part of swaddle, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
# Copyright © 2014-2015 The developers of shellfire compress. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/shellfire-dev/compress/master/COPYRIGHT.
core_dependency_requires '*' cat lzop touch
compress_lzop()
{
# This way seems odd but reduces compressed file size as mode, timestamp not stored (and unlike gzip, -n does not work for compression)
cat "$1" | lzop -9 -c -q >"$1".lzo
touch -r "$1" "$1".lzo
}