#!/bin/sh file=$1 ##@ process extra=" " files="$extra $file"; for f in $files; do for x in ax mx php cfg js; do if [ -f $f.$x ]; then mk $f.$x.html; fi done; done files="object-swf.cfg" for x in $files; do mk $x.html; done ##@ compile SOURCE="$VIP/lib/as" LC="$SOURCE/corelib.swc" SG="$SOURCE/SpringGraph.swc" LIBRARIES="-include-libraries $LC $SG " ## multiple libraries t=`echo $file | sed -e "s:-:_:g"` echo creating $t.mxml OPTIONS="-source-path+=$SOURCE " echo mxmlc $LIBRARIES $OPTIONS -- $t.mxml mk $file.swf #mxmlc $LIBRARIES $OPTIONS -- $t.mxml #mv $t.swf $f.swf