#!/bin/csh

switch ($1)
	
	case play:
		mikmod -q -d6 -p1 "$2"
		exit 0
	breaksw
	
	case isOurFile:
		if ( { ( cat "$2" | file - | grep -q "module sound data" ) } || { ( cat "$2" | file - | grep -q "Zip archive" ) } ) then
			exit 0
		else
			exit -1
		endif
	breaksw

endsw

exit -1
