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
| |-+  Feature Ideas
| | |-+  idea for making of zip files
« previous next »
  • Print
Pages: [1]

Author Topic: idea for making of zip files  (Read 2469 times)

Offline alexwallis646

  • Member
  • *
  • Posts: 20
idea for making of zip files
« on: June 23, 2009, 08:27:10 AM »
I just had an idea about naming of zip files if a person is building there rockbox from source and has issued the make zip command.
Would it be possible to have it so that when a zip file is generated instead of it being called rockbox.zip it also includes the revision number of the compiled version?
I think this would be good as it would make it very easy to archive old builds that a person has compiled from there own source.
As at the moment if a person wants to archive a given build they either have to create a folder for it, or rename the file manually.
I would have thought it would be fairly straight forward to get the revision number read from the rockboxinfo.txt file and include it in the file name.
I frequently archive old builds that I make till new ones have had a good few days or weeks of testing just in case there are any unexpected problems with patches I include in them.
Including the revision number would make life a lot easier for me in terms of archiving.
What do people think about this idea?
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: idea for making of zip files
« Reply #1 on: June 23, 2009, 02:26:03 PM »
i think you can write such a script in about five seconds that does:

* make zip
* mv rockbox.zip rockbox-`svnversion`.zip

done!
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: idea for making of zip files
« Reply #2 on: June 23, 2009, 02:39:22 PM »
I'd try to play bash golf with this, but there seems little point - that's about as simple as it gets :)
Logged

Read The Manual Please

Offline alexwallis646

  • Member
  • *
  • Posts: 20
Re: idea for making of zip files
« Reply #3 on: June 23, 2009, 03:51:43 PM »
So you are saying my idea is pointless? did I understand that right?
I think it would be useful for the times when you want to keep an old build after making a new one so you could always revert back to it if you should want to.
As you can just copy the zip file to a given location and know instantly without opening it and looking at the txt file this is a build of whatever the revision number is.
True, if you are going to delete your file straight away then its pointless, but not if your going to keep one or two builds lying around for a few weeks.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: idea for making of zip files
« Reply #4 on: June 23, 2009, 05:03:53 PM »
Quote from: alexwallis646 on June 23, 2009, 03:51:43 PM
So you are saying my idea is pointless? did I understand that right?

No. I gave you the solution. Just use that as a script and your feature is there.

That's why we have scripts and operating systems with powerful tools and command lines: to allow us to make them do what we want.
Logged

Offline alexwallis646

  • Member
  • *
  • Posts: 20
Re: idea for making of zip files
« Reply #5 on: June 23, 2009, 05:46:57 PM »
Hi.
I am a cygwin user so would this work for me?
how exactly do I make the script?
also would it be possible to automate it so that all I have to do is enter the command make zip and it gets run?
Logged

Offline evilnick

  • Rockbox Expert
  • Member
  • *
  • Posts: 431
Re: idea for making of zip files
« Reply #6 on: June 23, 2009, 06:18:49 PM »
I think that this is beginning to move away from Rockbox questions and more into general computer usage.
It might be helpful to read up on cygwin and scripts; I've only got a tiny bit of knowledge myself, but I think Bagder has given you pretty much the entire script already.

Anyway, to answer your questions: yes, unsure, probably (but with the proviso that it'd be a better idea to call it something other than make zip in case you wanted to go back to the vanilla version).
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: idea for making of zip files
« Reply #7 on: June 24, 2009, 12:53:56 PM »
You can do this with Cygwin without any problems.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  idea for making of zip files
 

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

Page created in 0.093 seconds with 15 queries.