Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« previous next »
  • Print
Pages: [1]

Author Topic: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).  (Read 3821 times)

Offline sanusart

  • Member
  • *
  • Posts: 24
RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« on: February 21, 2008, 06:49:16 PM »
Hello,

I made this RAMU script (to use with CygWin only) that meant to automate some basic building/managing tasks, like update, build, patching/reverting...

I'd like to hear some feedback about it - what is good, what is bad, what parts need improvements, if it worked for You etc.

Thanks.
Logged

Offline pkdick

  • Member
  • *
  • Posts: 3
RAMU use in a non english environment
« Reply #1 on: February 27, 2008, 02:20:21 PM »
Is it possible to configure the Rockbox Auto Management Utility to operate in a non english environment (e.g. french vista)?: I tried to use it but it appeared that the commands it was sending to cygwin were not properly expressed. For example "cd rockbox/build" was cd rockbox:build...

Thank you in advance
Logged

Offline sanusart

  • Member
  • *
  • Posts: 24
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #2 on: February 27, 2008, 05:41:32 PM »
Hi pkdick, I have successfully tested RAMU with English and Hebrew environment (XP not Vista though). I can't see any problems that could appear in any latin-based languages.

Is this cd rockbox/build folder is inside c:\cygwin\home\ ?

Try to write the settings directly to .ini file (not via GUI), don't forget to use slashes - "/" and not back slashes - "\".
Logged

Offline pkdick

  • Member
  • *
  • Posts: 3
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #3 on: February 28, 2008, 02:49:41 AM »
Hello,

No the rockbox folder is located in the users directory (cygwin directory was created in the c: root).

I tried what you proposed without result: as I am not a programmer, I am a little bit limited...
Logged

Offline sanusart

  • Member
  • *
  • Posts: 24
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #4 on: February 28, 2008, 06:11:32 AM »
So this is the problem.  Your building directory should be in the cygwin's home/USER_NAME/ for this to work properly, as cygwin is emulating unix file structure - no spaces in paths etc. I am not programmer ether - RAMU written on 'auto hot key', so it only sends key-strokes to the CMD window. 
« Last Edit: February 28, 2008, 06:15:01 AM by sanusart »
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #5 on: March 08, 2008, 12:51:51 AM »
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".
Logged

Offline sanusart

  • Member
  • *
  • Posts: 24
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #6 on: March 08, 2008, 01:02:26 AM »
Unix has no drive letters - truth, but cygwin is a Linux-like environment for Windows. So what is the issue here?
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #7 on: March 10, 2008, 09:36:11 PM »
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.)
Logged

Offline XavierGr

  • Global Moderator
  • Member
  • *
  • Posts: 207
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #8 on: March 11, 2008, 03:18:30 AM »
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. :)
Logged

Offline ColdSphinx

  • Member
  • *
  • Posts: 147
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #9 on: March 11, 2008, 12:12:35 PM »
a little script, that i'm using under windows:
build.vbs
Code: [Select]
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

it can easily edited to make any keyinput you want.
« Last Edit: March 11, 2008, 12:14:53 PM by ColdSphinx »
Logged
Rockbox.src

Offline sanusart

  • Member
  • *
  • Posts: 24
Re: RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
« Reply #10 on: March 14, 2008, 11:39:43 AM »
Quote from: dreamlayers on March 10, 2008, 09:36:11 PM
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.)

CygWin is for windows, no?
The only thing that differ cygwin from windows paths is the slashes, I had to StringReplace[] all the '\' to '/' before writing to .ini.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  RAMU - Rockbox Auto Management Utility - topic (for CygWin only).
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.041 seconds with 18 queries.