Skip to content
This repository was archived by the owner on Aug 15, 2017. It is now read-only.

Commit 434d1a2

Browse files
committed
Updates to get Rubicon downloads and build products in the right place.
1 parent 4ec1188 commit 434d1a2

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

build.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ function run_prepare() {
348348

349349
info "Distribution will be located at $DIST_PATH"
350350
if [ -e "$DIST_PATH" ]; then
351-
error "The distribution $DIST_PATH already exist"
352-
error "Press a key to remove it, or Control + C to abort."
353-
read
351+
info "Removing existing distribution"
354352
try rm -rf "$DIST_PATH"
355353
fi
356354
try mkdir -p "$DIST_PATH"
@@ -531,6 +529,13 @@ function run_get_packages() {
531529
fi
532530

533531
filename=$(basename $url)
532+
debug "Initial filename is $filename"
533+
if [ "X$filename" == "Xmaster.zip" ]; then
534+
debug "Github master file found"
535+
filename="$module-$filename"
536+
fi
537+
debug "Final filename is $filename"
538+
534539
marker_filename=".mark-$filename"
535540
do_download=1
536541

@@ -581,6 +586,10 @@ function run_get_packages() {
581586
info "Downloading $url"
582587
try rm -f $marker_filename
583588
try $WGET $filename $url
589+
if [ "X$(basename $url)" != "$filename" ]; then
590+
debug "Move downloaded file to final location"
591+
mv $(basename $url) $filename
592+
fi
584593
touch $marker_filename
585594
else
586595
debug "Module $module already downloaded"

recipes/rubicon/recipe.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ URL_rubicon=https://github.com/pybee/rubicon-java/archive/master.zip
1313
MD5_rubicon=
1414

1515
# default build path
16-
BUILD_rubicon=$BUILD_PATH/rubicon/$(get_directory $URL_rubicon)
16+
BUILD_rubicon=$BUILD_PATH/rubicon/rubicon-master
1717

1818
# default recipe path
1919
RECIPE_rubicon=$RECIPES_PATH/rubicon
@@ -33,7 +33,8 @@ function build_rubicon() {
3333
# try $HOSTPYTHON setup.py install
3434

3535
# Build Java JARs
36-
# make libs/rubicon.jar
36+
make dist/rubicon.jar
37+
cp dist/rubicon.jar $LIBS_PATH
3738

3839
# Build JNI component
3940

0 commit comments

Comments
 (0)