annotate cpack/dml/scripts/compression/encode @ 7:3c7cc53984a6 no-matlab tip

removed rcutils as seem incompatible with this version (no history/2 defined)
author wolffd.mail@googlemail.com
date Wed, 25 Jul 2018 15:51:48 +0000
parents 718306e29690
children
rev   line source
Daniel@0 1 #!/bin/sh
Daniel@0 2 if [ $# -lt 2 ]; then
Daniel@0 3 echo 'Usage: encode <method> <reference> ...'
Daniel@0 4 echo
Daniel@0 5 echo 'Do differential compression 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" encode "$ref" "$@"