#!/bin/sh -ex

if [ $HOME != c:/ ]; then
  PATH=.:$PATH
else
  PATH=".;/bin"
fi

shorten -x mvs_s16.shn tmp.s16
shorten -v 1 -t s16hl	tmp.s16 - | cmp - mvs_s16.shn
shorten -a2 -t s16	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -a1024 -t s16x 	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -b1024 -t u16	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -b 4   -t u16x	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -m 0   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -m 32  -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -v 0   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -v 1   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -v 2   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -p1    -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -p16   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -p16 -v2 -ts16hl tmp.s16 -| shorten -x | cmp - tmp.s16
shorten -tulaw		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -talaw		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -ts8		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tu8		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -ts16		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tu16		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tu16x		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -ts16hl		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tu16hl		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -ts16lh		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tu16lh		tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -c2 -tulaw	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -c2 -talaw	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -a340 -c16	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -c2 -p4 -tu16 -b5 tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -v2 -t ulaw 	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -v2 -t alaw 	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -q3 -ts16hl	tmp.s16 tmp_s16.shn
shorten -x tmp_s16.shn - 	| shorten     -ts16hl | cmp - tmp_s16.shn
shorten -x tmp_s16.shn - 	| shorten -q3 -ts16hl | cmp - tmp_s16.shn
rm tmp_s16.shn
shorten -r3 -ts16hl tmp.s16 tmp_s16.shn
rm tmp_s16.shn

if [ $HOME != c:/ ]; then
  shorten tmp.s16
  shorten -x tmp.s16.shn
fi

rm tmp.s16

exit 0
