Fix upload scripts.
parent
97b3bdf044
commit
d2805d9e16
|
@ -4,17 +4,17 @@ set -e
|
|||
set -u
|
||||
|
||||
WISE_VERSION=$1
|
||||
SERVER_DOWNLOAD_DIR=/var
|
||||
SERVER_DOWNLOAD_DIR=/var/www/wisemapping.org/stable
|
||||
|
||||
WISE_BIN_FILE_NAME=wisemapping-${WISE_VERSION}.zip
|
||||
WISE_BIN_FILE_PATH=./installer/target/${WISE_BIN_FILE_NAME}
|
||||
WISE_BIN_FILE_PATH=./target/${WISE_BIN_FILE_NAME}
|
||||
|
||||
WISE_SRC_FILE_NAME=wisemapping-${WISE_VERSION}-src.tar.gz
|
||||
WISE_SRC_FILE_PATH=./installer/target/${WISE_SRC_FILE_NAME}
|
||||
WISE_SRC_FILE_PATH=./target/${WISE_SRC_FILE_NAME}
|
||||
|
||||
scp ${WISE_SRC_FILE_PATH} thecrow@wisemapping.com:${SERVER_DOWNLOAD_DIR}/
|
||||
scp ${WISE_BIN_FILE_PATH} thecrow@wisemapping.com:${SERVER_DOWNLOAD_DIR}
|
||||
|
||||
# It's there ?
|
||||
wget -S http://downloads.wisemapping.org/stable/${WISE_BIN_FILE_NAME}
|
||||
wget -S http://downloads.wisemapping.org/stable/${WISE_SRC_FILE_NAME}
|
||||
wget -S http://downloads.wisemapping.org/stable/${WISE_SRC_FILE_NAME}
|
||||
|
|
|
@ -8,17 +8,17 @@ BASE_DIR=`pwd`
|
|||
TARGET_DIR=$BASE_DIR/target
|
||||
JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION
|
||||
WISE_WEBAPP_DIR=$JETTY_DIR/webapps/wisemapping
|
||||
JETTY_DIST_DIR=jetty-distribution-7.3.0.v20110203
|
||||
JETTY_DIST_DIR=jetty-distribution-7.4.3.v20110701
|
||||
JETTY_ZIP=${JETTY_DIST_DIR}.zip
|
||||
|
||||
# Clean ...
|
||||
mvn -f $BASE_DIR/../pom.xml clean
|
||||
mvn -o -f $BASE_DIR/../pom.xml clean
|
||||
[ ! -e target ] && mkdir target
|
||||
rm -fr ${JETTY_DIR}
|
||||
rm -fr ${TARGET_DIR}/jetty-distribution-7.3.0.v20110203
|
||||
rm -fr ${TARGET_DIR}/${JETTY_DIST_DIR}
|
||||
|
||||
# Prepare resources ..
|
||||
mvn -f $BASE_DIR/../pom.xml install
|
||||
mvn -o -f $BASE_DIR/../pom.xml install
|
||||
|
||||
if [ ! -f ./target/${JETTY_ZIP} ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue