annotate cpack/dml/scripts/compression/decode @ 0:718306e29690 tip

commiting public release
author Daniel Wolff
date Tue, 09 Feb 2016 21:05:06 +0100
parents
children
rev   line source
Daniel@0 1 #!/bin/sh
Daniel@0 2 if [ $# -lt 2 ]; then
Daniel@0 3 echo 'Usage: decode <method> <reference> ...'
Daniel@0 4 echo
Daniel@0 5 echo 'Do differential decompression using the script <method>.'
Daniel@0 6 echo 'The reference/source/dictionary may be a file or a process redirection.'
Daniel@0 7 exit 1
Daniel@0 8 fi
Daniel@0 9 set -o nounset
Daniel@0 10 here="$(dirname "$0")"
Daniel@0 11 diff="$1"
Daniel@0 12 ref="$2"
Daniel@0 13 shift 2
Daniel@0 14 "$here/bufs" 2 "$here/$diff" decode "$ref" "$@"