Skip to content

Commit 8e3c448

Browse files
unknownunknown
authored andcommitted
Added windows cmd script version of make_eclipse_compat.
1 parent e5c821d commit 8e3c448

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎Scripts/make_eclipse_compat.cmd‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
:: This is based on the shell script with the same name. #!/bin/sh
2+
:: echo off
3+
4+
:: check to make sure we are in the base directory.
5+
if NOT exist BasicSamples (
6+
echo "*** Error: this script must be run from the base directory of your working copy."
7+
exit /B 1
8+
)
9+
10+
echo "Making eclipse-compatible projects..."
11+
if NOT exist eclipse_compat mkdir eclipse_compat
12+
13+
echo "Converting each sample"
14+
15+
for %%i in (BeGenerous ButtonClicker TypeANumber CollectAllTheStars2 TrivialQuest TrivialQuest2 SkeletonTbmp libraries\BaseGameUtils) do (
16+
echo "Preparing %%i..."
17+
if NOT exist eclipse_compat\%%i mkdir eclipse_compat\%%i
18+
copy BasicSamples\%%i\src\main\AndroidManifest.xml eclipse_compat\%%i
19+
20+
:: # copy resources
21+
if exist eclipse_compat\%%i\res ( rd /s /q eclipse_compat\%%i\res)
22+
xcopy /e /i BasicSamples\%%i\src\main\res\*.* eclipse_compat\%%i\res
23+
24+
:: # copy source files
25+
if exist eclipse_compat\%%i\src ( rd /s /q eclipse_compat\%%i\src)
26+
mkdir eclipse_compat\%%i\src
27+
xcopy /e /i BasicSamples\%%i\src\main\java\* eclipse_compat\%%i\src
28+
29+
:: # copy libs
30+
if exist eclipse_compat\%%i\libs ( rd /s /q eclipse_compat\%%i\libs)
31+
mkdir eclipse_compat\%%i\libs
32+
xcopy /e /i Scripts\eclipse_aux\*.jar eclipse_compat\%%i\libs
33+
)
34+
35+
echo "Eclipse-compatible folders generated in eclipse_compat\"
36+

0 commit comments

Comments
 (0)