Mercurial > hg > dml-open-cliopatria
comparison cpack/dml/scripts/compression/zzcd @ 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 # zzcd <compressor:process> <differ:(encode|decode) filename ... -> process> <reference:filename> | |
| 3 # Applies <compressor> separately to reference, and to concatenation of reference and input, | |
| 4 # then applies <differ> to the results. | |
| 5 here=$(dirname "$0") | |
| 6 compress="$1" | |
| 7 diff="$2" | |
| 8 ref="$3" | |
| 9 shift 3 | |
| 10 prepend "$ref" | eval $compress | encode "$diff" <(cat "$ref" | eval $compress) "$@" | |
| 11 | |
| 12 |
