Daniel@0: #!/usr/bin/env bash Daniel@0: # zzd process> Daniel@0: # Applies to reference and input, then applies Daniel@0: # compressed reference and compressed input. Daniel@0: here="$(dirname "$0")" Daniel@0: compress="$1" Daniel@0: diff="$2" Daniel@0: ref="$3" Daniel@0: shift 3 Daniel@0: eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@" Daniel@0: