#!/bin/bash
#
# Compile guiwidgets-demo with correct classpath
# 
# $Author: bablokb $
# $Revision: 1.1 $
#
# License: GPL2
# -----------------------------------------------------------------------------

addjars() {
  for d in $@; do
    jars=`find $d -name "*.jar" -maxdepth 1`
    for f in $jars; do
      cp=$cp:$f
    done
  done
  CPATH=$cp:$CPATH
}

addjars ./lib

javac -classpath .:$CPATH -d . "$@"

