comparison cpack/dml/scripts/compression/rzp @ 0:718306e29690 tip

commiting public release
author Daniel Wolff
date Tue, 09 Feb 2016 21:05:06 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:718306e29690
1 #!/bin/sh
2 # rzp (encode|decode)
3 # Use rzip to encode/decode standard input
4 set -o nounset
5 set -e
6 function encode { rzip -9 $1 -o $2 -f; }
7 function decode { rzip -d $1 -o $2 -f; }
8 in=`mktemp -t rziXXX`
9 out=`mktemp -t rzoXXX`
10 trap "rm -f $in $out; exit" EXIT INT KILL
11 (cat > $in) && $1 $in $out && cat $out