This repository was archived by the owner on Aug 15, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ URL_rubicon=https://github.com/pybee/rubicon-java/archive/master.zip
1313MD5_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
1919RECIPE_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
You can’t perform that action at this time.
0 commit comments