view 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
line wrap: on
line source
#!/usr/bin/env bash
# zzd <compressor:process> <differ:(encode|decode) filename ... -> process> <reference:filename>
# Applies <compressor> to reference and input, then applies <differ>
# compressed reference and compressed input.
here="$(dirname "$0")"
compress="$1"
diff="$2"
ref="$3"
shift 3
eval $compress | encode "$diff" <(cat "$ref" | eval $compress)  "$@"