development
修訂 | 70af177cf323a6ed7e0fa98a07e53b908ed3fcce (tree) |
---|---|
時間 | 2008-12-06 05:36:27 |
作者 | ralf <ralf@andr...> |
Commiter | ralf |
Fix create_ddms_symlinks to create libs/ correctly.
Add git ignore files to avoid all build files from being submitted to git.
@@ -0,0 +1 @@ | ||
1 | +*.jar |
@@ -0,0 +1 @@ | ||
1 | +*.jar |
@@ -0,0 +1,31 @@ | ||
1 | +add.png | |
2 | +backward.png | |
3 | +clear.png | |
4 | +d.png | |
5 | +debug-attach.png | |
6 | +debug-error.png | |
7 | +debug-wait.png | |
8 | +delete.png | |
9 | +device.png | |
10 | +down.png | |
11 | +e.png | |
12 | +edit.png | |
13 | +empty.png | |
14 | +emulator.png | |
15 | +forward.png | |
16 | +gc.png | |
17 | +halt.png | |
18 | +heap.png | |
19 | +i.png | |
20 | +importBug.png | |
21 | +load.png | |
22 | +pause.png | |
23 | +play.png | |
24 | +pull.png | |
25 | +push.png | |
26 | +save.png | |
27 | +thread.png | |
28 | +up.png | |
29 | +v.png | |
30 | +w.png | |
31 | +warning.png |
@@ -0,0 +1 @@ | ||
1 | +*.jar |
@@ -0,0 +1,2 @@ | ||
1 | +ddmlib | |
2 | +ddmuilib |
@@ -0,0 +1 @@ | ||
1 | +*.jar |
@@ -0,0 +1 @@ | ||
1 | +*.jar |
@@ -24,7 +24,7 @@ function back() { | ||
24 | 24 | BASE="development/tools/eclipse/plugins/com.android.ide.eclipse.ddms" |
25 | 25 | |
26 | 26 | DEST=$BASE/libs |
27 | -mkdir -p $D | |
27 | +mkdir -p $DEST | |
28 | 28 | BACK=`back $DEST` |
29 | 29 | for i in prebuilt/common/jfreechart/*.jar; do |
30 | 30 | $CMD $BACK/$i $DEST/ |
@@ -1,24 +1,32 @@ | ||
1 | 1 | #!/bin/bash |
2 | -cd ../plugins/com.android.ide.eclipse.tests | |
2 | + | |
3 | +# CD to the top android directory | |
4 | +D=`dirname "$0"` | |
5 | +cd "$D/../../../../" | |
6 | + | |
7 | +DEST="development/tools/eclipse/plugins/com.android.ide.eclipse.tests" | |
8 | +# computes "../.." from DEST to here (in /android) | |
9 | +BACK=`echo $DEST | sed 's@[^/]*@..@g'` | |
10 | + | |
3 | 11 | HOST=`uname` |
4 | 12 | if [ "$HOST" == "Linux" ]; then |
5 | - ln -svf ../../../../out/host/linux-x86/framework/kxml2-2.3.0.jar . | |
13 | + ln -svf $BACK/out/host/linux-x86/framework/kxml2-2.3.0.jar "$DEST/" | |
14 | + | |
6 | 15 | elif [ "$HOST" == "Darwin" ]; then |
7 | - ln -svf ../../../../out/host/darwin-x86/framework/kxml2-2.3.0.jar . | |
16 | + ln -svf $BACK/out/host/darwin-x86/framework/kxml2-2.3.0.jar "$DEST/" | |
17 | + | |
8 | 18 | elif [ "${HOST:0:6}" == "CYGWIN" ]; then |
9 | - if [ "x$1" == "x" ]; then | |
10 | - echo "Usage: $0 <path to jars>" | |
11 | - echo "Argument 1 should be the path to the jars you want to copy. " | |
12 | - echo " e.g. android_sdk_windows_NNN/tools/lib/ " | |
13 | - echo "(since you can't rebuild them under Windows, you need prebuilt ones " | |
14 | - echo " from an SDK drop or a Linux/Mac)" | |
15 | - exit 1 | |
16 | - fi | |
17 | - if [ ! -f "kxml2-2.3.0.jar" ]; then | |
18 | - wget -O "kxml2-2.3.0.jar" "http://internap.dl.sourceforge.net/sourceforge/kxml/kxml2-2.3.0.jar" | |
19 | - chmod a+rx *.jar | |
20 | - fi | |
19 | + JAR="kxml2-2.3.0.jar" | |
20 | + if [ ! -f "$DEST/$JAR" ]; then | |
21 | + # Get the jar from ADT if we can, otherwise download it. | |
22 | + if [ -f "$DEST/../com.android.ide.eclipse.adt/$JAR" ]; then | |
23 | + cp "$DEST/../com.android.ide.eclipse.adt/$JAR" "$JAR" | |
24 | + else | |
25 | + wget -O "$DEST/$JAR" "http://internap.dl.sourceforge.net/sourceforge/kxml/$JAR" | |
26 | + fi | |
27 | + chmod a+rx "$DEST/$JAR" | |
28 | + fi | |
21 | 29 | else |
22 | - echo "Unsupported platform ($HOST). Nothing done." | |
30 | + echo "Unsupported platform ($HOST). Nothing done." | |
23 | 31 | fi |
24 | 32 |