OSDN Git Service

Fix DDMS and HierarchyViewer .bat files on Windows
authorRaphael Moll <ralf@android.com>
Wed, 15 Dec 2010 20:51:26 +0000 (12:51 -0800)
committerRaphael Moll <ralf@android.com>
Wed, 15 Dec 2010 20:54:00 +0000 (12:54 -0800)
commitc033675641edac18a2eac72d06cbc06f00906cd1
treef117c7c4885a8dea0d69c56cdc61b505c6f4dab0
parentc4244e96692109505cdca59a88f5a7c3f1ee8184
Fix DDMS and HierarchyViewer .bat files on Windows

These were not setting the "bin dir" properpty correctly,
and as a consequence the tools complain they can't find adb.exe.

The fix is to set it to the directory of the script but to
avoid spaces-in-path issues we use the "~fs" modifier to get
a space-free short name for the %cd% value. And since we can't
use use %cd% combined with ~fs, we use a for loop trick to set it.

Note that ddms.bat was in unix end-of-line mode so I changed it
back to DOS end-of-line mode.

Change-Id: Ic9e55643b551898043add27c12193a0949f40bb0
ddms/app/etc/ddms.bat
hierarchyviewer2/app/etc/hierarchyviewer.bat