#!/bin/sh -ex

if [ $HOME = c:/ ]; then
 swap disk
else
  PATH=.:$PATH
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 -b2    -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 -p1    -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -p16   -t s16hl	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -tau		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 -tau	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -a340 -c256	tmp.s16 - | shorten -x | cmp - tmp.s16
shorten -c2 -p4 -tu16 -b5 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
