|
From: David B. <Dav...@mo...> - 2006-08-22 13:11:08
|
S=C3=B8ren Hauberg wrote: >You're talking about things that should be done by the person releasing >the package, not the person installing the package. So I don't think >this should be integrated in pkg.m (otherwise the person installing the >package needs programs like makeinfo, etc.). > =20 > Agreed >I think it makes sense to let release.sh (or whatever we call the script >that makes tarballs) check if a Makefile exist in the package directory. >If a Makefile exist in the package directory we run > make -C package_dir release >Then the package maintainer can basicly do what ever he/she wants at >release-time. > =20 > What, about something like in the attached patch. This essentially replaces your release.sh script with a Makefile, that if there is a Makefile in the sub-directory to uses this to define a variable PKG_FILES with the files to include in the package. It equally gives the developer of the package access to three targets pre-pkg/%::, post-pkg/%::, and clean: that allow the developer to do things prior and post creation of the package and define what needs to be done to clean up the directory. Note this code relies on the Makeconf in the root directory, and that I haven't addressed this issue yet. Therefore, "./configure" should be run in the root and "make" should be run in the "main/" directory. The packages can then be found in packages/*.tar.gz which will allow your overall tar-ball to be created as a seperate process. I've converted the comm/ sub-directory to use the new make architecture to specify how to treat the doc/ sub-directory. There is still quite a bit to do in this infrastructure, but I believe this is a good way forward as it gives the developer complete control of what to include in the package. We'll need to address the toplevel, configure, extras and non-free directories before using it for the majority of users. Thoughts? Regards David --=20 David Bateman Dav...@mo... Motorola Labs - Paris +33 1 69 35 48 04 (Ph)=20 Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)=20 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)=20 The information contained in this communication has been classified as:=20 [x] General Business Information=20 [ ] Motorola Internal Use Only=20 [ ] Motorola Confidential Proprietary |