summaryrefslogtreecommitdiffstats
path: root/tools/intro
diff options
context:
space:
mode:
authorOle Kristian Lien <ole.k.lien@gmail.com>2009-12-08 17:01:27 +0000
committerOle Kristian Lien <ole.k.lien@gmail.com>2009-12-08 17:01:27 +0000
commitad4080141ca1d8d1f0539398765c0db381a47f09 (patch)
treed9c7a0ece55b4d42163ee3bad7ef535ef8cdac9e /tools/intro
parent5d3d3c9f2337fe18c64c2caea533c863aee93ae0 (diff)
split up intro outro and csv
Diffstat (limited to 'tools/intro')
-rwxr-xr-xtools/intro53
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/intro b/tools/intro
new file mode 100755
index 0000000..4d07934
--- /dev/null
+++ b/tools/intro
@@ -0,0 +1,53 @@
+#!/bin/bash
+# ikke i svn
+
+EXT=`echo "$1"|awk -F . '{print $NF}'`
+BASENAME=`basename $1 .$EXT`
+COUNT="10"
+
+LOGO=`./csv $2 $1 logo`
+WHAT=`./csv $2 $1 what`
+DATE=`./csv $2 $1 date`
+LOCATION=`./csv $2 $1 location`
+TITLE=`./csv $2 $1 title`
+NAME=`./csv $2 $1 name`
+LICENSE=`./csv $2 $1 license`
+
+if [ -z "$2" ]; then
+ echo "Usage: $0 <video-file> <csv-file>"
+ exit 1
+fi
+
+# LOGO
+./image_logo $1 intro-$COUNT white $LOGO
+COUNT=`expr $COUNT + 1`
+./image_logo $1 intro-$COUNT white $LOGO
+COUNT=`expr $COUNT + 1`
+./image_logo $1 intro-$COUNT white $LOGO
+COUNT=`expr $COUNT + 1`
+
+# SLIDE 1
+./image_text $1 intro-$COUNT white "$WHAT" "$DATE - $LOCATION"
+COUNT=`expr $COUNT + 1`
+./image_text $1 intro-$COUNT white "$WHAT" "$DATE - $LOCATION"
+COUNT=`expr $COUNT + 1`
+./image_text $1 intro-$COUNT white "$WHAT" "$DATE - $LOCATION"
+COUNT=`expr $COUNT + 1`
+
+# SLIDE 2
+./image_text $1 intro-$COUNT white "$TITLE" "$NAME"
+COUNT=`expr $COUNT + 1`
+./image_text $1 intro-$COUNT white "$TITLE" "$NAME"
+COUNT=`expr $COUNT + 1`
+./image_text $1 intro-$COUNT white "$TITLE" "$NAME"
+COUNT=`expr $COUNT + 1`
+
+# LICENSE
+cp $LICENSE.png $BASENAME-intro-$COUNT.png
+COUNT=`expr $COUNT + 1`
+cp $LICENSE.png $BASENAME-intro-$COUNT.png
+COUNT=`expr $COUNT + 1`
+cp $LICENSE.png $BASENAME-intro-$COUNT.png
+
+./image2video $1 intro
+rm $BASENAME-intro-*.png