Fix upload scripts.

This commit is contained in:
Paulo Gustavo Veiga 2011-07-05 12:31:17 -03:00
parent 97b3bdf044
commit d2805d9e16
2 changed files with 8 additions and 8 deletions

8
installer/copy-dist.sh Normal file → Executable file
View File

@ -4,17 +4,17 @@ set -e
set -u set -u
WISE_VERSION=$1 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_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_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_SRC_FILE_PATH} thecrow@wisemapping.com:${SERVER_DOWNLOAD_DIR}/
scp ${WISE_BIN_FILE_PATH} thecrow@wisemapping.com:${SERVER_DOWNLOAD_DIR} scp ${WISE_BIN_FILE_PATH} thecrow@wisemapping.com:${SERVER_DOWNLOAD_DIR}
# It's there ? # It's there ?
wget -S http://downloads.wisemapping.org/stable/${WISE_BIN_FILE_NAME} 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}

View File

@ -8,17 +8,17 @@ BASE_DIR=`pwd`
TARGET_DIR=$BASE_DIR/target TARGET_DIR=$BASE_DIR/target
JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION
WISE_WEBAPP_DIR=$JETTY_DIR/webapps/wisemapping 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 JETTY_ZIP=${JETTY_DIST_DIR}.zip
# Clean ... # Clean ...
mvn -f $BASE_DIR/../pom.xml clean mvn -o -f $BASE_DIR/../pom.xml clean
[ ! -e target ] && mkdir target [ ! -e target ] && mkdir target
rm -fr ${JETTY_DIR} rm -fr ${JETTY_DIR}
rm -fr ${TARGET_DIR}/jetty-distribution-7.3.0.v20110203 rm -fr ${TARGET_DIR}/${JETTY_DIST_DIR}
# Prepare resources .. # Prepare resources ..
mvn -f $BASE_DIR/../pom.xml install mvn -o -f $BASE_DIR/../pom.xml install
if [ ! -f ./target/${JETTY_ZIP} ] if [ ! -f ./target/${JETTY_ZIP} ]
then then