Skip to content

Commit

Permalink
cleanup deploy scripts
Browse files Browse the repository at this point in the history
 * removed mac 32bit support
 * removed JRE download and re-packaging

Signed-off-by: Frank Gasdorf <[email protected]>
  • Loading branch information
fgdrf committed Apr 25, 2018
1 parent 3f9150a commit b8f221e
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 225 deletions.
3 changes: 0 additions & 3 deletions deploy/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#
export SCRIPTS=`dirname $0`

cd ${SCRIPTS}
./mac32.sh

cd ${SCRIPTS}
./mac64.sh

Expand Down
2 changes: 0 additions & 2 deletions deploy/jre/.gitignore

This file was deleted.

56 changes: 0 additions & 56 deletions deploy/jre/download_jre.sh

This file was deleted.

110 changes: 0 additions & 110 deletions deploy/jre/linux_jre_build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/lin32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
echo "Release Linux 32"
source ./support_functions.sh

assemble "linux32" "linux.gtk.x86" "${JRE_LIN32}"
assemble "linux32" "linux.gtk.x86"
2 changes: 1 addition & 1 deletion deploy/lin64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
echo "Release Linux 64"
source ./support_functions.sh

assemble "linux64" "linux.gtk.x86_64" "${JRE_LIN64}"
assemble "linux64" "linux.gtk.x86_64"
6 changes: 0 additions & 6 deletions deploy/mac32.sh

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/mac64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ echo "Release mac osx 64"

source ./support_functions.sh

assemble "mac64" "macosx.cocoa.x86_64" ""
assemble "mac64" "macosx.cocoa.x86_64"
10 changes: 4 additions & 6 deletions deploy/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ This directory contains a series of scripts used to package the uDig
application after it has been exported from eclipse.

To use:
1. Download the latest custom JREs into a jre/ folder
2. Export udig.product to a subdirectory 1.2.x/ folder
3. Update versions.sh to reflect the above two settings and the version you are releasing
4. ./clean.sh - to remove the build directory
5. Individual scripts to package:
1. Export udig.product to a subdirectory 1.2.x/ folder
2. Update versions.sh to reflect the above two settings and the version you are releasing
3. ./clean.sh - to remove the build directory
4. Individual scripts to package:
./win32 - package jre, udig.bat
./win64 - (pending the availability of an appropriate JRE)
./lin32 - package jre, udig.sh
./lin64 - package jre, udig.sh
./mac32 - renames udig_internal back to udig
./mac64 - renames udig_internal back to udig
./sdk - very simple script removes configuration and application
5. Upload to:
Expand Down
27 changes: 0 additions & 27 deletions deploy/support_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ source ./versions.sh
function assemble() {
PLATFORM=$1
EXT=$2
PLATFORM_JRE=$3

echo "Looking for ${PRODUCT_TARGET}/org.locationtech.udig-product-${EXT}.zip"

Expand All @@ -25,10 +24,6 @@ function assemble() {
echo "Extracting ${PRODUCT_TARGET}/org.locationtech.udig-product-${EXT}.zip"
unzip -q -d ${BUILD}/${PLATFORM}/udig ${PRODUCT_TARGET}/org.locationtech.udig-product-${EXT}.zip

echo "Preparing ${BUILD}/${PLATFORM} with ${JRE}/${PLATFORM_JRE}"

extract_jre

echo "Preparing ${BUILD}/${PLATFORM} with start up scripts and html files"
prepare_resources

Expand Down Expand Up @@ -261,25 +256,3 @@ function check() {
echo "$2 succeeded return value $1"
fi
}

function extract_jre () {

if [[ $PLATFORM == linux* ]] ; then
echo "Looking for ${JRE}/${PLATFORM_JRE}.tar.gz"
if [ -f ${JRE}/${PLATFORM_JRE}.tar.gz ] ; then
echo "Extracting ${JRE}/${PLATFORM_JRE}.tar.gz"
tar xzf ${JRE}/${PLATFORM_JRE}.tar.gz -C ${BUILD}/${PLATFORM}/udig
else
echo "${JRE}/${PLATFORM_JRE}.tar.gz not found - user will require their own JRE"
exit
fi
else
echo "Looking for ${JRE}/${PLATFORM_JRE}.zip"
if [ -f ${JRE}/${PLATFORM_JRE}.zip ] ; then
echo "Extracting ${JRE}/${PLATFORM_JRE}.zip ..."
unzip -q -d ${BUILD}/${PLATFORM}/udig ${JRE}/${PLATFORM_JRE}.zip
else
echo "${JRE}/${PLATFORM_JRE}.zip not found - user will require their own JRE"
fi
fi
}
10 changes: 0 additions & 10 deletions deploy/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,5 @@ export PRODUCT_TARGET="${BASE}/../features/org.locationtech.udig-product/target/
# Tycho SDK Build
export SDK_TARGET="${BASE}/../features/org.locationtech.udig_sdk-feature/target"

# Build Resources
export JRE="${BASE}/jre"
export JRE_WIN32=jre1.6.0_25.win32_gdal_ecw
export JRE_WIN64=jre1.6.0.win64
export JRE_LIN32=jre1.6.0_25.lin32_jai_gdal_ecw
export JRE_LIN64=jre1.6.0_25.lin64_gdal_ecw

# echo "Staged for release by maven tycho build..."
# ls ${PRODUCT_TARGET}/*.zip | xargs -n1 basename

# echo "Available JREs:"
# ls ${JRE} | xargs -n1 basename
2 changes: 1 addition & 1 deletion deploy/win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
echo "Release Win 32"
source ./support_functions.sh

assemble "win32" "win32.win32.x86" "${JRE_WIN32}"
assemble "win32" "win32.win32.x86"
2 changes: 1 addition & 1 deletion deploy/win64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
echo "Release Win 64"
source ./support_functions.sh

assemble "win64" "win32.win32.x86_64" "${JRE_WIN64}"
assemble "win64" "win32.win32.x86_64"

0 comments on commit b8f221e

Please sign in to comment.