That looks awesome. The script is solid, I'd only add this:
function trapZERR() {
echo "Error $? detected, killing process $$" >&2
kill $$
}
at the beginning. That way the script would die if any command returns a
nonzero code.
I'll test the script as soon as I'll have an opportunity.
Thanks Ellery!
Andrei
Ellery Newcomer wrote:
Andrei Alexandrescu <and...@...> writes:
I think it would be great to reduce the barrier to entry as much as we
can. Currently we have a deb package but not rpm. A savvy user can use
alien to convert from one to another (with limitations), but I think
simply having a downloadable rpm is the best way to go.
Is anyone here an expert on building rpms?
Thanks,
Andrei
Will you settle for a novice on building rpms?
Here is a bash script which will convert a dmd zip distribution to rpm:
http://personal.utulsa.edu/~ellery-newcomer/dmd2rpm
usage:
$ dmd2rpm dmd.2.047.zip
I've only tested the resulting rpms on fedora 13, 32 bit and 64 bit, but it
works nicely on each.
Note I wasn't sure what to put in the license slot, as well as a few others.
I also haven't looked at signing it, so installation would look something like
yum install dmd-2.047-1.i686.rpm --nogpgcheck
a yum repository would be nice for automatic upgrades..
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos