~ubuntuone-support/+junk/syncdaemon-perftest

« back to all changes in this revision

Viewing changes to install.sh

  • Committer: Roman Yepishev
  • Date: 2012-04-02 10:28:38 UTC
  • Revision ID: roman.yepishev@canonical.com-20120402102838-cftyw8c8754a1rrj
Latest version of the scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
mkdir -p bin lib
10
10
 
11
 
REST_CLIENT=ubuntuone-rest-files-client.py
12
 
 
13
 
if [ ! -f bin/$REST_CLIENT ]; then
14
 
    echo "Downloading U1 REST client"
15
 
    wget -O bin/$REST_CLIENT http://people.canonical.com/~roman.yepishev/us/$REST_CLIENT
16
 
    chmod +x bin/$REST_CLIENT
17
 
fi
18
 
 
19
11
if [ ! -f bin/dropbox ]; then
20
12
    echo "Downloading Dropbox CLI app"
21
13
    wget -O bin/dropbox "http://linux.dropbox.com/packages/dropbox.py"
24
16
 
25
17
if [ ! -d ~/.dropbox-dist ]; then
26
18
    echo "Downloading Dropbox distribution"
27
 
    wget -O /tmp/dropbox-dist.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86"
 
19
    ARCH=`uname -m`
 
20
    if [ "$ARCH" == "x86_64" ]; then
 
21
        PLATFORM="x86_64"
 
22
    else
 
23
        PLATFORM="x86"
 
24
    fi
 
25
    wget -O /tmp/dropbox-dist.tar.gz "http://www.dropbox.com/download/?plat=lnx.$PLATFORM"
28
26
    tar xfz /tmp/dropbox-dist.tar.gz -C$HOME
29
27
fi
30
28