The Wayback Machine - https://web.archive.org/web/20190405131717/https://github.com/rstudio/rstudio/commit/484cb884c28913c19822c42b0cd099ee22832211
Skip to content
Permalink
Browse files

portable download of java dependencies

  • Loading branch information...
jjallaire committed Dec 7, 2010
1 parent c719a59 commit 484cb884c28913c19822c42b0cd099ee22832211
Showing with 13 additions and 11 deletions.
  1. +13 −11 dependencies/install-dependencies-java
@@ -16,14 +16,16 @@
# install dir
INSTALL_DIR=`pwd`

# determine download command (wget, fallback to curl)
WGET=`which wget`
if [ "$WGET" != "" ]
then
DOWNLOAD="wget"
else
DOWNLOAD="curl -L"
fi
download()
{
WGET=`which wget`
if [ "$WGET" != "" ]
then
wget https://s3.amazonaws.com/rstudio-buildtools/$1 -O $1
else
curl -L https://s3.amazonaws.com/rstudio-buildtools/$1 > $1
fi
}

# target directory for gwt
GWT_DIR=$INSTALL_DIR/../src/gwt
@@ -32,22 +34,22 @@ mkdir -p $LIB_DIR

# guice
GUICE_ZIP=guice.zip
$DOWNLOAD https://s3.amazonaws.com/rstudio-buildtools/$GUICE_ZIP > $GUICE_ZIP
download $GUICE_ZIP
rm -rf $LIB_DIR/guice
unzip -d $LIB_DIR $GUICE_ZIP
rm $GUICE_ZIP

# gin
GIN_ZIP=gin.zip
$DOWNLOAD https://s3.amazonaws.com/rstudio-buildtools/$GIN_ZIP > $GIN_ZIP
download $GIN_ZIP
rm -rf $LIB_DIR/gin
unzip -d $LIB_DIR $GIN_ZIP
rm $GIN_ZIP

# gwt sdk
GWT_SDK=gwt-2.0.4
GWT_SDK_ZIP=$GWT_SDK.zip
$DOWNLOAD https://s3.amazonaws.com/rstudio-buildtools/$GWT_SDK_ZIP > $GWT_SDK_ZIP
download $GWT_SDK_ZIP
rm -rf $GWT_DIR/sdk
unzip -d $GWT_DIR $GWT_SDK_ZIP
mv $GWT_DIR/$GWT_SDK $GWT_DIR/sdk

0 comments on commit 484cb88

Please sign in to comment.
You can’t perform that action at this time.