Oden Eriksson wrote: > On onsdagen den 25 september 2002 12.07 Buchan Milne wrote:
>>Which problem? AFAIK, all of them are solveable ... > > > Ok thanks, yes I just realized that. > > Would you mind sharing your woodoo magic? > It's not really woodoo (voodoo?) magic, a bit of bash with a few weird rpm queries, and it doesn't totally work, but you can find my current version here: http://ranger.dnsalias.com/mandrake/scripts/build_from_cvs Actually, it's so small, I have atteched it (but more current one may always be on my site). It still needs a few features to make it really useful: 1)Specify version (for orignal source) 2)Specify release tag for samba cvs 3)Specify release tag for original source 4)Be able to both source and packaging for release tags 5)GUI Only problem is, I am having trouble extracting the name of the source tarball that we need to check for / create from CVS (but it works right if you have a tarball in your `rpm --eval %_sourcedir`): [bgmilne@bgmilne bgmilne]$ rpm -q --specfile /home/bgmilne/downloads/source/cvs/mandrake/SPECS/samba/samba.spec --qf "%{SOURCE}\n"|head -n1 (none) Why does this not work?? [bgmilne@bgmilne bgmilne]$ rpm -q --specfile /home/bgmilne/downloads/source/cvs/mandrake/SPECS/samba/samba.spec --qf "%{NAME}\n"|head -n1 samba [bgmilne@bgmilne bgmilne]$ rpm -q --specfile /home/bgmilne/downloads/source/cvs/mandrake/SPECS/samba/samba.spec --qf "%{VERSION}\n"|head -n1 2.2.6 [bgmilne@bgmilne bgmilne]$ rpm -q --specfile /home/bgmilne/downloads/source/cvs/mandrake/SPECS/samba/samba.spec --qf "%{RELEASE}\n"|head -n1 1.0.pre2.2mdk Only problem here, is that I actually need samba-2.2.6pre2.tar.bz2, which I have no way of constructing from the variables/macros that do work. For a stable release, it should (normally, unless they have a weird naming convention, which some people do) work: [bgmilne@bgmilne bgmilne]$ rpm -q --specfile /home/bgmilne/downloads/source/cvs/mandrake/SPECS/samba/samba.spec --qf "%{NAME}-%{VERSION}\n"|head -n1 samba-2.2.6 Buchan -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
build_from_cvs
Description: application/java-vm
