settings=~/.m2t/settings.xml

case "`uname`" in
  CYGWIN*) settings=`cygpath -w $settings` ;;
esac

PROJECT_DIR=`pwd`

mvn -B -s $settings -P local,docs,release clean deploy -N
cd $PROJECT_DIR/cdk
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/framework
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/ui
mvn -B -s $settings -P local,docs,release clean deploy -N
mvn -B -s $settings -P local,docs,release clean install
cd $PROJECT_DIR/docs
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/ui/assembly
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/extensions
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples
mvn -B -s $settings -P local,docs,release clean deploy -N
cd $PROJECT_DIR/samples/laguna
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples/glassX
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples/darkX
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples/themes
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples/violetRays
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/samples/richfaces-demo
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/examples/photoalbum
mvn -B -s $settings -P local,docs,release clean deploy
cd $PROJECT_DIR/examples/photoalbum/assembly
mvn -B -s $settings -P local,docs,release clean install