aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts/create_all_symlinks.sh
blob: db4673f815f87fb7fab089527c4df8aec1ef1174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

HOST=`uname`
if [ "${HOST:0:6}" == "CYGWIN" ]; then
    if [ "x$1" == "x" ] || [ `basename "$1"` != "layoutlib.jar" ]; then
        echo "Usage: $0 sdk/platforms/xxx/data/layoutlib.jar"
        echo "Argument 1 should be the path to the layoutlib.jar that should be updated by create_bridge_symlinks.sh."
        exit 1
    fi
fi

echo "### $0 executing"

function die() {
    echo "Error: $*"
    exit 1
}

# CD to the top android directory
D=`dirname "$0"`
cd "$D/../../../"

DEST="sdk/eclipse/scripts"

set -e # fail early

echo ; echo "### ADT ###" ; echo
$DEST/create_adt_symlinks.sh "$*"
echo ; echo "### DDMS ###" ; echo
$DEST/create_ddms_symlinks.sh "$*"
echo ; echo "### TEST ###" ; echo
$DEST/create_test_symlinks.sh "$*"
echo ; echo "### BRIDGE ###" ; echo
$DEST/create_bridge_symlinks.sh "$*"

echo "### $0 done"