forked from playgameservices/android-basic-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_eclipse_compat.cmd
More file actions
36 lines (27 loc) · 1.31 KB
/
Copy pathmake_eclipse_compat.cmd
File metadata and controls
36 lines (27 loc) · 1.31 KB
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
:: This is based on the shell script with the same name. #!/bin/sh
:: echo off
:: check to make sure we are in the base directory.
if NOT exist BasicSamples (
echo "*** Error: this script must be run from the base directory of your working copy."
exit /B 1
)
echo "Making eclipse-compatible projects..."
if NOT exist eclipse_compat mkdir eclipse_compat
echo "Converting each sample"
for %%i in (BeGenerous ButtonClicker TypeANumber CollectAllTheStars2 TrivialQuest TrivialQuest2 SkeletonTbmp SavedGames libraries\BaseGameUtils) do (
echo "Preparing %%i..."
if NOT exist eclipse_compat\%%i mkdir eclipse_compat\%%i
copy BasicSamples\%%i\src\main\AndroidManifest.xml eclipse_compat\%%i
:: # copy resources
if exist eclipse_compat\%%i\res ( rd /s /q eclipse_compat\%%i\res)
xcopy /e /i BasicSamples\%%i\src\main\res\*.* eclipse_compat\%%i\res
:: # copy source files
if exist eclipse_compat\%%i\src ( rd /s /q eclipse_compat\%%i\src)
mkdir eclipse_compat\%%i\src
xcopy /e /i BasicSamples\%%i\src\main\java\* eclipse_compat\%%i\src
:: # copy libs
if exist eclipse_compat\%%i\libs ( rd /s /q eclipse_compat\%%i\libs)
mkdir eclipse_compat\%%i\libs
xcopy /e /i Scripts\eclipse_aux\*.jar eclipse_compat\%%i\libs
)
echo "Eclipse-compatible folders generated in eclipse_compat\"