#!/bin/bash
-# testing
-WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
+# local testing
+#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
+# NOTE by AM (2022-06-07): this is probably outdated and can be removed as
+# we build with maven/tycho/jenkins now. Before removing compare with current
+# configuration
PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
-DEPLOYMENT_SERVER="wp5.e-taxonomy.eu"
+DEPLOYMENT_SERVER="cybertaxonomy.eu"
DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
# bash check if directory exists
if [ ! -d $PRODUCT_DIR ]; then
- echo "Target directory does not exist: $PRODUCT_DIR"
+ echo "Product directory does not exist: $PRODUCT_DIR"
exit 1
fi
-PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
+PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
-if [ ! -e $PRODUCTS ]; then
- echo "No products in target folder."
+if [ ! $PRODUCTS ]; then
+ echo "No products in product directory: $PRODUCT_DIR"
exit 1
fi