Add script detection (patch from Jeff Fearn).
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
* Extract dependencies from tests.
|
* Extract dependencies from tests.
|
||||||
* curl doesn't tell us what it is downloading, so be more verbose.
|
* curl doesn't tell us what it is downloading, so be more verbose.
|
||||||
* Don't download files with curl unless they've been modified.
|
* Don't download files with curl unless they've been modified.
|
||||||
|
* Add script detection (patch from Jeff Fearn).
|
||||||
|
|
||||||
1.78 2009-01-16
|
1.78 2009-01-16
|
||||||
|
|
||||||
|
|||||||
@@ -808,7 +808,8 @@ for my $file (@args) {
|
|||||||
|
|
||||||
my $license="";
|
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 (%build_requires,%requires);
|
||||||
my ($yml,$meta);
|
my ($yml,$meta);
|
||||||
if (grep /^META\.yml$/, @files
|
if (grep /^META\.yml$/, @files
|
||||||
@@ -1187,7 +1188,7 @@ END
|
|||||||
|
|
||||||
if ($scripts) {
|
if ($scripts) {
|
||||||
print $spec "\%{_bindir}/*\n";
|
print $spec "\%{_bindir}/*\n";
|
||||||
# FIXME - How do we auto-detect man pages?
|
print $spec "\%{_mandir}/man1/*\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($noarch) {
|
if ($noarch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user