#!/bin/sh # timeless.wrapper - Runs local version of "timeless" demo # License: BSD-style [for this file only] # Revision: 071010 #--------------------------------------------------------------------- # Terminate existing instances of "mikmod". # Note: The following command needs to use "killany", as opposed to # "killall". # killany -w mikmod >& /dev/null killany -w xmp >& /dev/null #--------------------------------------------------------------------- # Terminate existing instances of "timeless.bin". # Note: The following command needs to use "killall", as opposed to # "killany". # killall --wait -9 timeless.bin >& /dev/null #--------------------------------------------------------------------- # Terminate existing instances of "xmms". # if [ `ps ax | grep xmms.bin | wc -l` -gt 0 ]; then # xmms.bin --quit # pause250ms # fi # Note: The following command needs to use "killany", as opposed to # "killall". # # killany -9 -wait "xmms(.bin|\z)" #--------------------------------------------------------------------- # Start background music. sleep 1 resetpcmvol # mikmod -q -v 70 __META_PREFIX__/program/timeless.mod >& /dev/null & xmp __META_PREFIX__/program/timeless.mod >& /dev/null & #--------------------------------------------------------------------- # Run "timeless" demo. export SDL_VIDEO_CENTERED=1 __META_PREFIX__/program/timeless.bin #--------------------------------------------------------------------- # Stop the music. killany -w mikmod >& /dev/null killany -w xmp >& /dev/null