Rockbox Development > Feature Ideas
idea for making of zip files
alexwallis646:
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?
Bagder:
i think you can write such a script in about five seconds that does:
* make zip
* mv rockbox.zip rockbox-`svnversion`.zip
done!
GodEater:
I'd try to play bash golf with this, but there seems little point - that's about as simple as it gets :)
alexwallis646:
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.
Bagder:
--- Quote from: alexwallis646 on June 23, 2009, 03:51:43 PM ---So you are saying my idea is pointless? did I understand that right?
--- End quote ---
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.
Navigation
[0] Message Index
[#] Next page
Go to full version