summaryrefslogtreecommitdiff
path: root/examples/scala-js/scripts/publish-to-bintray.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scala-js/scripts/publish-to-bintray.sh')
-rwxr-xr-xexamples/scala-js/scripts/publish-to-bintray.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/scala-js/scripts/publish-to-bintray.sh b/examples/scala-js/scripts/publish-to-bintray.sh
new file mode 100755
index 0000000..3b455ea
--- /dev/null
+++ b/examples/scala-js/scripts/publish-to-bintray.sh
@@ -0,0 +1,35 @@
+#! /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 testBridge 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