Dolda2000 GitWeb
/
utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make rbtadd work outside of the LAN.
[utils.git]
/
planime
diff --git
a/planime
b/planime
index
62c01a4
..
ed79ec9
100755
(executable)
--- a/
planime
+++ b/
planime
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
isnum() {
grep -xq '[0-9]\+' <<<"$1"
isnum() {
grep -xq '[0-9]\+' <<<"$1"
@@
-35,7
+35,7
@@
findfile() {
}
origargs=("$0" "$@")
}
origargs=("$0" "$@")
-cmdline=(mplayer -fs)
+cmdline=(mplayer -fs
-ass
)
while [ "${1:0:1}" = - ]; do
a="$1"
while [ "${1:0:1}" = - ]; do
a="$1"
@@
-48,6
+48,16
@@
while [ "${1:0:1}" = - ]; do
-t)
cmdline=("${cmdline[@]}" -ao oss:/dev/dsp1)
;;
-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
-s)
savepar="$1"
shift
@@
-63,6
+73,9
@@
file=
tqual=
if [ $# -eq 0 ]; then
nextep=y
tqual=
if [ $# -eq 0 ]; then
nextep=y
+ if [ -r curser ]; then
+ base="$base $(<curser)"
+ fi
elif [ $# -eq 1 ]; then
if [ -r "$1" ]; then
file="$1"
elif [ $# -eq 1 ]; then
if [ -r "$1" ]; then
file="$1"
@@
-79,11
+92,19
@@
elif [ $# -eq 2 ]; then
ep="$1"
tqual="$2"
else
ep="$1"
tqual="$2"
else
- base="$base $1"
+ if [ "$1" = . -a -r curser ]; then
+ base="$base $(<curser)"
+ else
+ base="$base $1"
+ fi
ep="$2"
fi
else
ep="$2"
fi
else
- base="$base $1"
+ if [ "$1" = . -a -r curser ]; then
+ base="$base $(<curser)"
+ else
+ base="$base $1"
+ fi
ep="$2"
tqual="$3"
fi
ep="$2"
tqual="$3"
fi