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
| | |-+  Windows Shortcut to Cygwin Shell script
« previous next »
  • Print
Pages: [1]

Author Topic: Windows Shortcut to Cygwin Shell script  (Read 6820 times)

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Windows Shortcut to Cygwin Shell script
« on: May 18, 2007, 06:12:11 PM »
I've got a shell script written that automatically syncs to svn, builds, and merges in extras (themes, fonts, etc).  My question is is there a way to create a windows shortcut to a cygwin shell script?  This would allow a simple double click from windows, and could also be automated.

By the way, if anyone wants the shell script just ask me.  It will work in linux or cygwin.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Windows Shortcut to Cygwin Shell script
« Reply #1 on: May 18, 2007, 06:34:14 PM »
you can create a shortcut that runs bash and pass bash that script file as argument. Haven't tried that on cygwin, but it should work.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: Windows Shortcut to Cygwin Shell script
« Reply #2 on: May 18, 2007, 08:01:46 PM »
It would be interesting to know if you can do this.  Cygwin is linux-like so you have to be in that "environment" in order to execute it's commands, I would think.
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Windows Shortcut to Cygwin Shell script
« Reply #3 on: May 19, 2007, 12:50:48 PM »
Quote
you can create a shortcut that runs bash and pass bash that script file as argument. Haven't tried that on cygwin, but it should work.
This is exactly what I am looking for, but I don't know how to pass an argument to cygwin.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Windows Shortcut to Cygwin Shell script
« Reply #4 on: May 19, 2007, 01:51:37 PM »
Quote from: digerati1338 on May 19, 2007, 12:50:48 PM
This is exactly what I am looking for, but I don't know how to pass an argument to cygwin.
You don't pass an argument to cygwin -- you pass it to the shell. Check the link that starts the cygwin environment itself, it mostly only starts some program with a couple of arguments.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Windows Shortcut to Cygwin Shell script
« Reply #5 on: May 21, 2007, 04:16:04 PM »
I figured it out.  It is actually really simple.  I just looked at the batch file that starts cygwin, and modified the line that calls bash to automatically load a file, and close when done.I replaced this:
Code: [Select]
bash --login -i
With this:
Code: [Select]
bash --login -i -c /home/Mike/BuildScript
This -c option will work with any command or shell script in cygwin.  Thanks for the help.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Windows Shortcut to Cygwin Shell script
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.