Mercurial > hg > monetdb-java
changeset 238:d27f4ad1ca91 embedded
Added upload script
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Mon, 11 Jun 2018 18:16:38 +0200 (2018-06-11) |
parents | c1bbb542617d |
children | 6d6e62ca590d |
files | .hgignore Makefile build.properties upload_jdbc_new.sh.in |
diffstat | 4 files changed, 24 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore +++ b/.hgignore @@ -5,6 +5,7 @@ syntax: glob *.jar build/META-INF/services/java.sql.Driver src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java +upload_jdbc_new.sh # files generated by various editors *.swp
--- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ all: src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java + . ./build.properties; sed -e "s/@JDBC_MAJOR@/$$JDBC_MAJOR/g;s/@JDBC_MINOR@/$$JDBC_MINOR/g" upload_jdbc_new.sh.in > upload_jdbc_new.sh ant -f build.xml distjdbc distmerocontrol cd tests; ant -f build.xml jar_jdbctests
--- a/build.properties +++ b/build.properties @@ -19,7 +19,7 @@ MCL_MINOR=14 # major release number JDBC_MAJOR=2 # minor release number -JDBC_MINOR=36 +JDBC_MINOR=37 # an additional identifying string JDBC_VER_SUFFIX=Liberica # the default port to connect on, if no port given when using SQL
new file mode 100644 --- /dev/null +++ b/upload_jdbc_new.sh.in @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +function echo_and_exit { + echo $1 >&2 + exit 1 +} + +if [[ -z $JAVA_HOME ]] ; then + echo_and_exit "The JAVA_HOME directory must be set" +fi + +# Prepare the directory to upload to our website +mkdir synchronizing +# Move the monetdb-jdbc-new jar +mv jars/monetdb-jdbc-new-@JDBC_MAJOR@.@JDBC_MINOR@.jar synchronizing/monetdb-jdbc-new-@JDBC_MAJOR@.@JDBC_MINOR@.jar +# Rsync the library files to the monet.org machine +rsync -aqz --ignore-times synchronizing/* ferreira@monetdb.org:/var/www/html/downloads/Java-Experimental/ +# Remove it in the end +rm -rf synchronizing