#!/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 mikmod > /dev/null #--------------------------------------------------------------------- # Terminate existing instances of "timeless.bin". # Note: The following command needs to use "killall", as opposed to # "killany". # killall -9 timeless.bin #--------------------------------------------------------------------- # 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. resetpulse mikmod -q -v 70 __META_PREFIX__/program/timeless.mod >& /dev/null & #--------------------------------------------------------------------- # Run "timeless" demo. export SDL_VIDEO_CENTERED=1 __META_PREFIX__/program/timeless.bin #--------------------------------------------------------------------- # Stop the music. killany mikmod > /dev/null