This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Possible bug with generic build script.


> 
> Even simpler -- it works for wildcards aiming from a single target
> directory to a single source directory, i.e., it won't magically flatten a
> directory tree for you, you'll have to use "find" for that...
> 
> If you need to copy directory structures using the install_docs mechanism,
> I suppose it could be done with something like the patch below -- give it
> a shot.  You will have to put a "/" after each directory that you want
> copied as a tree.  The flattening is a bit harder, but still doable.
> 

Since you're just passing this list of files to install, install puts them
all in the one folder - hence 'flattening' everything.  The / trick is a
nice way to support recursive folder contents, if that was what you wanted
(my particular case has no need for that, its directory structure is fairly
flat).

In my version, I ended up making a separate install_docs for each target
directory - since there was only 2 target directories I wanted, this was no
real issue.  My original bug report was that wildcards were not working,
that is fixed.

The concept I had which is not addressed is where defining doc/*.html copies
into /usr/share/doc/<package>/doc/ rather then /usr/share/doc/<package> -
However such things are selective, some people might want the later in some
cases others the former.  My own case, I ended up doing both (to separate
main docs from the docs for a specific subprogram).  Not sure if addressing
this issue is worthwhile, there are too many options as to what might be
wanted.

Regards,
Gareth Pearce



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]