From: fredrik Date: Mon, 10 Sep 2007 01:30:39 +0000 (+0000) Subject: Added mechanism for passing arguments to mplayer from planime. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=5f7e91433d5fea086080b9c7891abad6ed8025b7;p=utils.git Added mechanism for passing arguments to mplayer from planime. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1105 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/planime b/planime index 6ab0737..60549e9 100755 --- a/planime +++ b/planime @@ -48,6 +48,16 @@ while [ "${1:0:1}" = - ]; do -t) cmdline=("${cmdline[@]}" -ao oss:/dev/dsp1) ;; + -A) + while :; do + a="$1" + shift + if [ "$a" = \; ]; then + break; + fi + cmdline=("${cmdline[@]}" "$a") + done + ;; -s) savepar="$1" shift