Rockbox Development > Starting Development and Compiling

RAMU - Rockbox Auto Management Utility - topic (for CygWin only).

<< < (2/3) > >>

dreamlayers:
Unix normally doesn't have drive letters.  Sure, something like "ls c:" might work in Cygwin, but use of such paths can lead to problems.  The correct way to do it is to reference corresponding subdirectories of /cygdrive instead, eg. "ls /cygdrive/c".

sanusart:
Unix has no drive letters - truth, but cygwin is a Linux-like environment for Windows. So what is the issue here?

dreamlayers:
The issue is that software written for Unix wasn't written to work with Windows-style paths.  For example something might misbehave because it doesn't take into account that : is a kind of a path separator.  Also, Windows-like paths in Cygwin behave differently from how they behave normally in Windows apps, and this can add to the confusion.  (For example in Windows each drive has its own current directory and a drive letter followed by a colon refers to it, while in Cygwin there is only one current directory.)

XavierGr:
Quite a pleasant idea. It seems like a good utility for newcomers to source files and compiling. Also Autohokey is a fine choice for scripting on Windows.  Fast and Light; I use it daily for all my Windows scripting needs.

The program worked fine for me, although I have to say that once you are used to command line you will make the job faster than using a GUI.

Thanks for sharing. :)

ColdSphinx:
a little script, that i'm using under windows:
build.vbs

--- Code: ---Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("c:\cygwin\cygwin.bat") ' run cygwin
WScript.Sleep 500
WshShell.AppActivate "~" ' focus the frame by title
WScript.Sleep 200
Sub write_text(thetext, delayt)
For i = 1 To Len(thetext) Step 1
WScript.Sleep delayt
WshShell.SendKeys Mid(thetext, i, 1)
Next
End Sub
Sub write_line(thetext, delayt)
write_text thetext, delayt
send_enter delayt
End Sub
Sub send_special(thespecial, delayt)
WScript.Sleep delayt
WshShell.SendKeys "{"&thespecial&"}"
End Sub
Sub send_enter(delayt)
send_special "ENTER", delayt
End Sub
Sub send_backspace(delayt)
send_special "BACKSPACE", delayt
End Sub

write_line "cd rockbox/x5build", 10
write_line "../tools/configure", 10
WScript.Sleep 100
write_line "30", 10 ' iAudio X5/X5V/X5L
write_line "n", 10 ' "Normal" Build
WScript.Sleep 100
write_line "make clean; make; make zip", 10
--- End code ---

it can easily edited to make any keyinput you want.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version