From: Fredrik Tolf Date: Tue, 20 Apr 2010 23:40:32 +0000 (+0200) Subject: planime: Improved series selection and curser handling. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=44423004434ff685c085809c3d6a0198d7780b0c;p=utils.git planime: Improved series selection and curser handling. --- 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 $(