Mercurial > hg > dml-open-cliopatria
annotate cpack/dml/scripts/compression/zxd @ 0:718306e29690 tip
commiting public release
author | Daniel Wolff |
---|---|
date | Tue, 09 Feb 2016 21:05:06 +0100 |
parents | |
children |
rev | line source |
---|---|
Daniel@0 | 1 #!/bin/sh |
Daniel@0 | 2 # Binary difference from reference using xdelta3 -D |
Daniel@0 | 3 function encode { xdelta3 encode -9 -n -D "$@"; } |
Daniel@0 | 4 function decode { xdelta3 decode -R "$@"; } |
Daniel@0 | 5 cmd=$1 |
Daniel@0 | 6 dict="$2" |
Daniel@0 | 7 shift 2 |
Daniel@0 | 8 $cmd -s "$dict" "$@" |