aboutsummaryrefslogtreecommitdiff
path: root/tools/travis_postbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/travis_postbuild.sh')
-rwxr-xr-xtools/travis_postbuild.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/travis_postbuild.sh b/tools/travis_postbuild.sh
new file mode 100755
index 0000000..00c5d49
--- /dev/null
+++ b/tools/travis_postbuild.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DATEVAL=`date +%Y-%m-%d`
+VERSIONVAL=master
+
+# Use tag as version
+if [ $TRAVIS_TAG ]; then
+ VERSIONVAL=$TRAVIS_TAG
+fi
+
+sed -e s%@DATE@%${DATEVAL}% .bintray.in > .bintray.tmp
+sed -e s%@VERSION@%${VERSIONVAL}% .bintray.tmp > .bintray.json