Mercurial > hg > dtl-dml-cliopatria
view cpack/dml/scripts/compression/zzcd @ 7:3c7cc53984a6 no-matlab tip
removed rcutils as seem incompatible with this version
(no history/2 defined)
author | wolffd.mail@googlemail.com |
---|---|
date | Wed, 25 Jul 2018 15:51:48 +0000 |
parents | 718306e29690 |
children |
line wrap: on
line source
#!/usr/bin/env bash # zzcd <compressor:process> <differ:(encode|decode) filename ... -> process> <reference:filename> # Applies <compressor> separately to reference, and to concatenation of reference and input, # then applies <differ> to the results. here=$(dirname "$0") compress="$1" diff="$2" ref="$3" shift 3 prepend "$ref" | eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@"