#!/bin/sh
f=video-clips-tube-bowie-tibet



t=tube.mx
e=tube
n=tube-bowie-tibet
p=tube/bowie-tibet.flv
S=../assets/clips
d=tube


if [ -f $e.mx ]; then t=$e.mx; fi
if [ -f $n.mx ]; then t=$n.mx; fi
echo creating video-clips-$n with $t
U="url"
T="text"
cat $t | \
             sed -e "s:@$U:$S/$p:g"  \
                 -e "s:@$T:$d:g"  \
	     > video-clips-$n.mx;

files=""

C=" -include-libraries $files ";
A=" -library-path+=$VIP/frameworks -source-path+=$VIP/lib/as ";

echo processing $files $f
for x in $files; do
mk $x;
done
##t=`echo $f | sed -e "s:-:_:g"`
echo " $C $A " > $f.mk
echo mk $f.mx.html flex="\"$C $A\""
mk $f.mx.html
mk $f.swf
##cp @mx-$f.swf $f.swf
