|
From: H. <so...@ha...> - 2006-08-22 09:44:23
|
tir, 22 08 2006 kl. 10:12 +0200, skrev David Bateman: > Ideally, what I would like is that the documentation is built at the > time the package is created from the CVS, with the pdf version left in > the doc sub-directory and the info version copied to inst/. I'd also > like that the examples directory is copied to the package without chang= e. Also, we would probably like to generate some information for the webpage (right?). > Basically I see that this requires several changes the the release.sh > script where there is >=20 > 1) A means of specifying the sub-directories that are to be copied > directly to the package and which files in these sub-directories to > include or ignore > 2) A means at the time the package is constructed from the CVS to run > configure/make on arbitrary sub-directory (to find makeinfo for example= ) >=20 > There are probably multiple ways of implementing the above, but you > Soren as the one with the most knowledge of the package manager might > like to suggest the way that is the simpliest. Perhaps a Makefile in th= e > Root of each package directory, that is not included in the package. > This might include a file from the directory above with basic directive= s > to construct the package, which might be supplemented by the developer > as needed. That is including additional files and directories and > building certain parts of the package when the package is constructed. >=20 > Your thoughts? 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.). 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. S=C3=B8ren |