Download Redacted Version - Worcester Polytechnic Institute
Transcript
Design of a Digital Choral Folder
CDF_Script.sh
#!/bin/sh
display=/mnt/mmc/root/metro_display
fld=${1%/}
image=/mnt/mmc/images_1024x768/$fld/$fld
wfm=/mnt/mmc/root/wfms/23P00000_80_TB1001_MTC.wbf
buttons=0
index=1
redraw=1
echo $1
echo "$1"
while [ 1 -ne 0 ]
do
if [ $redraw -eq 1 ]
then
/mnt/mmc/root/setup/metro_powerup.sh
$display "$image$index.ppm" $wfm
/mnt/mmc/root/setup/metro_stby.sh
redraw=0;
fi
buttons=`/mnt/mmc/root/get_button 1`
case $buttons in
1 )
if [ "$(($index-1))" -eq "0" ]
then
redraw=0
else
index=$(($index-1))
redraw=1
fi
;;
2 )
index=$(($index+1))
redraw=1
;;
4 )
break
esac
done
exit 0
71