comparison upload_jdbc_new.sh.in @ 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
children
comparison
equal deleted inserted replaced
233:c1bbb542617d 238:d27f4ad1ca91
1 #!/bin/bash
2
3 set -e
4
5 function echo_and_exit {
6 echo $1 >&2
7 exit 1
8 }
9
10 if [[ -z $JAVA_HOME ]] ; then
11 echo_and_exit "The JAVA_HOME directory must be set"
12 fi
13
14 # Prepare the directory to upload to our website
15 mkdir synchronizing
16 # Move the monetdb-jdbc-new jar
17 mv jars/monetdb-jdbc-new-@JDBC_MAJOR@.@JDBC_MINOR@.jar synchronizing/monetdb-jdbc-new-@JDBC_MAJOR@.@JDBC_MINOR@.jar
18 # Rsync the library files to the monet.org machine
19 rsync -aqz --ignore-times synchronizing/* ferreira@monetdb.org:/var/www/html/downloads/Java-Experimental/
20 # Remove it in the end
21 rm -rf synchronizing