creating new android project

i’m trying to setup the new release of cocos2dx and i’m having some problems.
what i get from create-android-project.bat : http://pastebin.com/Vk8yLFW1
my create-android-project.bat : http://pastebin.com/8XdhTtRk
my create-android-project.sh : http://pastebin.com/c0nTCYLF
the directories seem ok, not sure about /home/…, assuming that /home/ points to my C: disk.

What is the problem?

/cygdrive/c/cocos2d-x/create-android-project.sh: line 6: $’‘: command not found/cygdrive/c/cocos2d-x/create-android-project.sh: line 10: $’‘: command not found/cygdrive/c/cocos2d-x/create-android-project.sh: line 43: syntax error near unexpected token `$’{\r’’’cygdrive/c/cocos2d-x/create-android-project.sh: line 43: `check_path(){

This is the error i get in create-android. bat but i cant even find the {\r in my create-android. sh

What’s your environment?
windows, mac or linux?

windows with cygwin

Did you modify file format of create-android-project.sh?
It seems that the format is changed to DOS format.

i edited them with wordpad and it probably changed the file format, now i did it with notepad and i get a different error :
/cygdrive/c/cocos2dxnew/template/android/copy_files.sh: line 60: /cygdrive/c/coc
os2dxnew/gaem/android/jni/helloworld/Android.mk: Permission denied
/cygdrive/c/cocos2dxnew/template/android/copy_files.sh: line 61: /cygdrive/c/coc
os2dxnew/gaem/android/jni/Application.mk: Permission denied

i tried running create-android-project.bat in administrator mode but it runs it in another folder then, so i launch command prompt in administrator mode and run create-android-project.bat from there and it seems to work but i’m not sure :

Please input target id:1
Create android project
Created project directory: C:2dxnew\gam
Created directory C:2dxnew\gam\src\org\cocos2dx\gam
Added file C:2dxnew\gam\src\org\cocos2dx\gam\gam.java
Created directory C:2dxnew\gam\res
Created directory C:2dxnew\gam\bin
Created directory C:2dxnew\gam\libs
Created directory C:2dxnew\gam\res\values
Added file C:2dxnew\gam\res\values\strings.xml
Created directory C:2dxnew\gam\res\layout
Added file C:2dxnew\gam\res\layout\main.xml
Added file C:2dxnew\gam\AndroidManifest.xml
Added file C:2dxnew\gam\build.xml
Added file C:2dxnew\gam\proguard.cfg
Press any key to continue . . .