diff options
Diffstat (limited to 'manyplayer')
| -rwxr-xr-x | manyplayer | 11 | 
1 files changed, 11 insertions, 0 deletions
| @@ -70,6 +70,14 @@ function setup {    echo -n $thelast > ${MANYPLAYER_DIR}/last  } +function teardown { +  if [ ! -d ${MANYPLAYER_DIR} ] ; then +    echo "Manyplayer has not been set up for this directory (${MANYPLAYER_DIR})." +    exit 1 +  fi +  rm -rf ${MANYPLAYER_DIR} +} +  function set_cmd {    echo -n $1 > ${MANYPLAYER_DIR}/cmd  } @@ -86,6 +94,7 @@ Usage:    same                      Watch the last episode again    tell                      Print the last filename    manyplayer setup <guess>  Setup manyplayer for this directory +  manyplayer teardown       Teardown manyplayer for this directory    manyplayer cmd <cmd>      Set the command for this directory    manyplayer pos <pos>      Set the position for this directory    manyplayer help           Show this pretty useless help @@ -109,6 +118,8 @@ elif [ "x$exe" == "xmanyplayer" ] ; then      else        setup $2 $3      fi +  elif [ "x$1" == "xteardown" ] ; then +    teardown    elif [ "x$1" == "xcmd" ] ; then      check      if [ "x$2" == "x" ] ; then | 
