From a6696a4c2cb5ec1f805441b6b4b163ede8fd0fb4 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Sat, 2 Feb 2013 14:31:09 +0100 Subject: convert cutint.sh to BSD behavia --- src/cutint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cutint.sh b/src/cutint.sh index 0157dc4..d9bc5de 100755 --- a/src/cutint.sh +++ b/src/cutint.sh @@ -1,6 +1,8 @@ #!/bin/sh +# ! /usr/local/bin/bash -parts="" +#parts=( ) +set -A parts if [ $# -lt 5 ]; then printf "usage: %s input output [start duration [start duration ...]]\n" $0 2>&1 @@ -14,7 +16,9 @@ shift while [ "x$1" != "x" -a "x$2" != "x" ] do - tmp=`mktemp --tmpdir=. --suffix=.mpg` +# tmp=`mktemp --tmpdir=. --suffix=.mpg` + tmp=`mktemp -p . XXXXX` + tmp=${tmp}.mpg start=$1 echo $tmp ffmpeg -y -i "$input" -sameq -ss "$1" -t "$2" "$tmp" -- cgit