Mercurial > hg > dtl-dml-cliopatria
view cpack/dml/scripts/compression/zbs @ 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
#!/bin/sh # dzbs <command:(encode|decode)> <reference:filename> # Use bsdiff to encode/decode standard input given data in <reference> function encode { bsdiff $1 $2 $3; } function decode { bspatch $1 $3 $2; } in=`mktemp -t bsdiXXX` out=`mktemp -t bsdoXXX` (cat > $in) && $1 $2 $in $out && cat $out rc=$? rm -f $in $out exit $rc