comparison cpack/dml/scripts/compression/zzd @ 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 #!/usr/bin/env bash
2 # zzd <compressor:process> <differ:(encode|decode) filename ... -> process> <reference:filename>
3 # Applies <compressor> to reference and input, then applies <differ>
4 # compressed reference and compressed input.
5 here="$(dirname "$0")"
6 compress="$1"
7 diff="$2"
8 ref="$3"
9 shift 3
10 eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@"
11