From 44423004434ff685c085809c3d6a0198d7780b0c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 21 Apr 2010 01:40:32 +0200 Subject: [PATCH] planime: Improved series selection and curser handling. --- planime | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/planime b/planime index 3dab1dd..9c17459 100755 --- a/planime +++ b/planime @@ -108,44 +108,31 @@ while [ "${1:0:1}" = - ]; do esac done -base="$(basename "$(pwd)")" +dirbase="$(basename "$(pwd)")" +base=. nextep=n file= tqual= if [ $# -eq 0 ]; then nextep=y - if [ -r curser ]; then - base="$base $(/dev/null; then - ep="$1" - else - nextep=y - base="$base $1" - fi + base= + ep="$1" fi elif [ $# -eq 2 ]; then - if findfile "$base - " "$1" "$2" >/dev/null; then + if findfile "$dirbase - " "$1" "$2" >/dev/null; then + base="" ep="$1" tqual="$2" else - if [ "$1" = . -a -r curser ]; then - base="$base $(