comparison cpack/dml/scripts/compression/zbs @ 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 # dzbs <command:(encode|decode)> <reference:filename>
3 # Use bsdiff to encode/decode standard input given data in <reference>
4 function encode { bsdiff $1 $2 $3; }
5 function decode { bspatch $1 $3 $2; }
6 in=`mktemp -t bsdiXXX`
7 out=`mktemp -t bsdoXXX`
8 (cat > $in) && $1 $2 $in $out && cat $out
9 rc=$?
10 rm -f $in $out
11 exit $rc
12