#!/bin/sh

[ -z "${PREFIX}" ]     && PREFIX="/usr/local"
[ -z "${JAVAJARDIR}" ] && JAVAJARDIR="/usr/local/share/java/classes/flex-sdk"
[ -z "${DATADIR}" ]    && DATADIR="/usr/local/share/flex-sdk"

VMARGS="-Xmx1024m -Dsun.io.useCanonCaches=false -Xbootclasspath/p:$JAVAJARDIR/xalan.jar"

java $VMARGS -classpath "$JAVAJARDIR/asdoc.jar" flex2.tools.ASDoc +flexlib="$DATADIR/frameworks" +configname=air $*
