On Tuesday, February 4, 2003, at 07:12 PM, Max Horn wrote:
No,At 18:43 Uhr -0500 04.02.2003, Jeremy Erwin wrote:I am porting a number of libraries that have extensive example code. I have beenHmm, did you try
putting
DocFiles: examples/hello/* examples/testgrid/*
and the like in my info files, but flattening the directory structure might not be such a great idea. Is there any reason why this behavior is the default, and is there a way to override this behavior.
DocFiles: examples/hello examples/testgrid
or just
DocFiles: examples
Actually, I am not really sure if it woruld work or not (I think it should, but it's been a while since I worked on that code; I guess I should RTFS to freshen up my mind, but am too tired right now :-)
DocFiles: samples
produces
install: hdfeos/samples: Inappropriate file type or format
The relevant source code is
if ($self->has_param("DocFiles")) {
my (@docfiles, $docfile, $docfilelist);
$install_script .= "\ninstall -d -m 755 %i/share/doc/%n";
@docfiles = split(/\s+/, $self->param("DocFiles"));
$docfilelist = "";
foreach $docfile (@docfiles) {
if ($docfile =~ /^(.+)\:(.+)$/) { #rename files?
$install_script .= "\ninstall -c -p -m 644 $1 %i/share/doc/%n/$2";
} else {
$docfilelist .= " $docfile";
}
}
if ($docfilelist ne "") {
$install_script .= "\ninstall -c -p -m 644$docfilelist %i/share/doc/%n/";
}
}
Quite possibly one should change this to
foreach $docfile (@docfiles) {
if ($docfile =~ /^(.+)\:(.+)$/) {
$install_script .= "\ninstall -c -p -m 644 $1 %i/share/doc/%n/$2";
}
if(-d $docfile) #is the docfile really a directory?
{
#create a subdirectory in %i/share/doc/%n
$install_script .= "\ninstall -d -m 755 %i/share/doc/%n/$docfile";
#copy the contents of that directory into the newly created subdirectory
$install_script .= "\ninstall -c -p -m 644 $docfile/* %i/share/doc/%n/$docfile";
}
else {
$docfilelist .= " $docfile";
}
}
if ($docfilelist ne "") {
$install_script .= "\ninstall -c -p -m 644$docfilelist %i/share/doc/%n/";
}
Note that this does not recurse.
Jeremy
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel
