Add script detection (patch from Jeff Fearn).

This commit is contained in:
Steven Pritchard
2010-12-08 09:17:32 -06:00
parent 8921253da7
commit 3d7b8a4f38
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
* Extract dependencies from tests.
* curl doesn't tell us what it is downloading, so be more verbose.
* Don't download files with curl unless they've been modified.
* Add script detection (patch from Jeff Fearn).
1.78 2009-01-16

View File

@@ -808,7 +808,8 @@ for my $file (@args) {
my $license="";
my $scripts=0;
# TODO It's possible these need to be listed instead of just detected.
my $scripts=(grep /^(?:bin|scripts)\//, @files);
my (%build_requires,%requires);
my ($yml,$meta);
if (grep /^META\.yml$/, @files
@@ -1187,7 +1188,7 @@ END
if ($scripts) {
print $spec "\%{_bindir}/*\n";
# FIXME - How do we auto-detect man pages?
print $spec "\%{_mandir}/man1/*\n";
}
if ($noarch) {