mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Create new dist script and scp copy.
This commit is contained in:
parent
c328a65d97
commit
97b3bdf044
20
installer/copy-dist.sh
Normal file
20
installer/copy-dist.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
WISE_VERSION=$1
|
||||||
|
SERVER_DOWNLOAD_DIR=/var
|
||||||
|
|
||||||
|
WISE_BIN_FILE_NAME=wisemapping-${WISE_VERSION}.zip
|
||||||
|
WISE_BIN_FILE_PATH=./installer/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}
|
||||||
|
|
||||||
|
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}
|
@ -18,7 +18,7 @@ rm -fr ${JETTY_DIR}
|
|||||||
rm -fr ${TARGET_DIR}/jetty-distribution-7.3.0.v20110203
|
rm -fr ${TARGET_DIR}/jetty-distribution-7.3.0.v20110203
|
||||||
|
|
||||||
# Prepare resources ..
|
# Prepare resources ..
|
||||||
mvn -f $BASE_DIR/../pom.xml install -Dmaven.test.skip=true
|
mvn -f $BASE_DIR/../pom.xml install
|
||||||
|
|
||||||
if [ ! -f ./target/${JETTY_ZIP} ]
|
if [ ! -f ./target/${JETTY_ZIP} ]
|
||||||
then
|
then
|
32
installer/package-src.sh
Executable file
32
installer/package-src.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
WISE_VERSION=$1
|
||||||
|
TMP_DIR=/tmp/wise-src/wisemapping-src
|
||||||
|
TAR_FILE_NAME=wisemapping-${WISE_VERSION}-src.tar.gz
|
||||||
|
OUTPUT_DIR=`pwd`"/target"
|
||||||
|
OUTPUT_FILE=${OUTPUT_DIR}/${TAR_FILE_NAME}
|
||||||
|
|
||||||
|
|
||||||
|
# Clean all.
|
||||||
|
cd ..
|
||||||
|
rm -rf ${TMP_DIR}/../
|
||||||
|
mvn clean
|
||||||
|
|
||||||
|
# Prepare copy
|
||||||
|
mkdir -p ${TMP_DIR}
|
||||||
|
rsync -aCv --exclude ".git" --exclude "wisemapping.i*" --exclude "*/*.iml" --exclude "*/wisemapping.log*" --exclude "**/.DS_Store" --exclude "*.textile" --exclude "**/.gitignore" --exclude "installer" --exclude "*/target" . ${TMP_DIR}
|
||||||
|
|
||||||
|
# Zip file
|
||||||
|
[ ! -e ${OUTPUT_DIR} ] && mkdir ${OUTPUT_DIR}
|
||||||
|
rm -f ${OUTPUT_FILE}
|
||||||
|
|
||||||
|
cd ${TMP_DIR}/..
|
||||||
|
tar -cvzf ${OUTPUT_FILE} .
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "#################################################################"
|
||||||
|
echo "Zip file generated on:"${OUTPUT_FILE}
|
||||||
|
echo "#################################################################"
|
Loading…
Reference in New Issue
Block a user