diff options
author | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-12-09 23:16:56 +0000 |
---|---|---|
committer | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-12-09 23:16:56 +0000 |
commit | 2c2ff1462d288567db0cf90faa5591f0823042ff (patch) | |
tree | 5896cf03c40a73e0eb4fff0d027b222770018dc2 /tools/outro | |
parent | ad4080141ca1d8d1f0539398765c0db381a47f09 (diff) |
fixed :)
Diffstat (limited to 'tools/outro')
-rwxr-xr-x | tools/outro | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/tools/outro b/tools/outro index 0e08a8e..a41e4f1 100755 --- a/tools/outro +++ b/tools/outro @@ -1,5 +1,10 @@ #!/bin/bash -# ikke i svn +# +# Date: 2009-12-10 +# Author: Ole Kristian Lien +# License: GNU General Public License +# +# Generate outro-file to a video EXT=`echo "$1"|awk -F . '{print $NF}'` BASENAME=`basename $1 .$EXT` @@ -7,6 +12,8 @@ COUNT=10 NAME=`./csv $2 $1 name` LOCATION=`./csv $2 $1 location` +TAKK=`./csv $2 $1 takk` +URL=`./csv $2 $1 url` if [ -z "$1" ]; then echo "Usage: $0 <video-file> <csv-file>" @@ -24,9 +31,31 @@ COUNT=`expr $COUNT + 1` COUNT=`expr $COUNT + 1` ./image_text $1 outro-$COUNT black "$LOCATION" Lokaler COUNT=`expr $COUNT + 1` - + # takk +# quick hack +oldIFS=$IFS +IFS=' +' +for i in $TAKK ; do + HVA=`echo "$i" | cut -d ":" -f 1` + HVEM=`echo "$i" | cut -d ":" -f 2` +# echo "TAKK: $HVA - $HVEM" + ./image_text $1 outro-$COUNT black "$HVEM" "$HVA" + COUNT=`expr $COUNT + 1` +done +IFS=$IFS + # url +for i in $URL ; do +# echo "URL: $i" + ./image_text $1 outro-$COUNT black " " + COUNT=`expr $COUNT + 1` + ./image_text $1 outro-$COUNT black "$i" + COUNT=`expr $COUNT + 1` + ./image_text $1 outro-$COUNT black "$i" + COUNT=`expr $COUNT + 1` +done ./image2video $1 outro rm $BASENAME-outro*.png |