OSDN Git Service

Don't regenerate R.java if a non xml resource is modified.
[android-x86/sdk.git] / files / post_tools_install.bat
1 @echo off\r
2 rem Copyright (C) 2010 The Android Open Source Project\r
3 rem\r
4 rem Licensed under the Apache License, Version 2.0 (the "License");\r
5 rem you may not use this file except in compliance with the License.\r
6 rem You may obtain a copy of the License at\r
7 rem\r
8 rem      http://www.apache.org/licenses/LICENSE-2.0\r
9 rem\r
10 rem Unless required by applicable law or agreed to in writing, software\r
11 rem distributed under the License is distributed on an "AS IS" BASIS,\r
12 rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 rem See the License for the specific language governing permissions and\r
14 rem limitations under the License.\r
15 \r
16 rem This script is called by the SDK Manager once a new version of the tools\r
17 rem package as been installed.\r
18 \r
19 rem don't modify the caller's environment\r
20 setlocal\r
21 \r
22 rem Set up prog to be the path of this script, including following symlinks,\r
23 rem and set up progdir to be the fully-qualified pathname of its directory.\r
24 set prog=%~f0\r
25 \r
26 rem Grab current directory before we change it\r
27 set work_dir=%cd%\r
28 \r
29 rem Change current directory and drive to where the script is, to avoid\r
30 rem issues with directories containing whitespaces.\r
31 cd /d %~dp0\r
32 \r
33 set src=SDK Manager.exe\r
34 set dst=..\..\%src%\r
35 \r
36 if not exist "%src%" goto Cleanup\r
37   echo Updating %src%\r
38   copy /V /Y "%src%" "%dst%"\r
39 \r
40 :Cleanup\r
41 set old_dst=..\..\SDK Setup.exe\r
42 if not exist "%old_dst%" goto :EOF\r
43   echo Removing obsolete %old_dst%\r
44   del /F /Q "%old_dst%"\r