It's fairly well known that the makerelease.pl script has some issues and dependencies that can cause headaches. I'm actively working on replacing this script as quickly as possible... and wanted to get a discussion going about possible features for the new script.
I do want to keep this new script simple ... so simple, in fact, that it will only build one file at a time. It will never build an RPM and a Debian file in the same command ... or build two tarballs at the same time. My goal for this script is that somebody can check out the svn code, type 'buildme.pl <with some options>" and get a single file out of the script that is built exactly the same way our production releases are built. Additionally, the script should not have any hard-coded file locations, or package names. This is, in fact, the real motivation for the new script... I believe that the name of each type of package should be controlled in a manner that makes sense for that individual package. Eg: Debian Package -> The name should be controlled by the Debian package control files... Perhaps some basic information such as the version # could be dynamically generated, but the basic name is held in the platforms/debian files. RPM Package -> The RPM name should be determined by the .spec file. It shouldn't get re-named by the makerelease.pl script (like it is now), and as much of the name should be generated in the .spec file alone. I agree with Fletch that doing a parse through the .spec file and replacing things on the fly is ugly, and difficult to maintain. Tarball (cpan, or no cpan) -> Given the basic nature of a tarball, it seems to make sense that the name can be dictated from the user on the command line. You'll see how I've done this in the script... Windows/OSX Files -> I havn't gotten into how these packages are built yet, so I don't have a plan for them... :) Give me some time, I'll get there! Final words... I've attached my first version of the script that works. I've done some basic testing and it seems to work fairly well so far. Please keep in mind I'm working on this script as much as possible while still dealing with the holiday's, so hopefully in a few days I'll have the Debian Package and RPM package portions functional. Right now, this script ONLY builds a Tarball package. +-------------------------------------------------------------------+ |Filename: buildme.pl.txt | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=3907| +-------------------------------------------------------------------+ -- Diranged ------------------------------------------------------------------------ Diranged's Profile: http://forums.slimdevices.com/member.php?userid=13773 View this thread: http://forums.slimdevices.com/showthread.php?t=41364 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/beta
