#! /bin/sh

if [ $# -eq 1 -a "$1" = "-x" ]; then
    export PUBLISH_TO_BINTRAY=true
    CMD=sbt
else
    echo "Showing commands that would be issued to SBT. Use -x to run"
    CMD=cat
fi

FULL_VERSIONS="2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.4"
BIN_VERSIONS="2.10.4 2.11.2" # Tools do not compile on 2.11.4 (see #1215)
SBT_VERSION="2.10.4"

LIBS="library javalibEx jasmineTestFramework tools toolsJS testInterface stubs"

# Publish compiler
for v in $FULL_VERSIONS; do
    echo "++$v"
    echo "compiler/publish"
done | $CMD

# Package libraries
for p in $LIBS; do
    for v in $BIN_VERSIONS; do
        echo "++$v"
        echo "$p/publish"
    done | $CMD
done

# Publish sbt-plugin
(
    echo "++$SBT_VERSION"
    echo "sbtPlugin/publish"
) | $CMD

#! /bin/sh

if [ $# -eq 1 -a "$1" = "-x" ]; then
    export PUBLISH_TO_BINTRAY=true
    CMD=sbt
else
    echo "Showing commands that would be issued to SBT. Use -x to run"
    CMD=cat
fi

FULL_VERSIONS="2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.4"
BIN_VERSIONS="2.10.4 2.11.2" # Tools do not compile on 2.11.4 (see #1215)
SBT_VERSION="2.10.4"

LIBS="library javalibEx ir irJS tools toolsJS jsEnvs testAdapter stubs testInterface"

# Publish compiler
for v in $FULL_VERSIONS; do
    echo "++$v"
    echo "compiler/publish"
done | $CMD

# Package libraries
for p in $LIBS; do
    for v in $BIN_VERSIONS; do
        echo "++$v"
        echo "$p/publish"
    done | $CMD
done

# Publish sbt-plugin
(
    echo "++$SBT_VERSION"
    echo "sbtPlugin/publish"
) | $CMD

Fix list of projects in publish script.
Fix list of projects in publish script.

Including removing jasmineTestFramework from that list.
