Mercurial > hg > dtl-dml-cliopatria
annotate 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 |
rev | line source |
---|---|
Daniel@0 | 1 #!/usr/bin/env bash |
Daniel@0 | 2 # zzcd <compressor:process> <differ:(encode|decode) filename ... -> process> <reference:filename> |
Daniel@0 | 3 # Applies <compressor> separately to reference, and to concatenation of reference and input, |
Daniel@0 | 4 # then applies <differ> to the results. |
Daniel@0 | 5 here=$(dirname "$0") |
Daniel@0 | 6 compress="$1" |
Daniel@0 | 7 diff="$2" |
Daniel@0 | 8 ref="$3" |
Daniel@0 | 9 shift 3 |
Daniel@0 | 10 prepend "$ref" | eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@" |
Daniel@0 | 11 |
Daniel@0 | 12 |