[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_install globbing



On Mon, May 30, 2016 at 11:27 PM, Dmitry Bogatov wrote:

> I want dh_install to install according following globbing:
>
>         src/doc/*[a-z].html /usr/share/doc/runit/html

>From reading the code it seems dh_install uses the perl glob function:

http://perldoc.perl.org/functions/glob.html
http://perldoc.perl.org/File/Glob.html

The glob you specified seems to work for me:

$ touch foo.1.html foo.html bar.1.html bar.html
$ perl -e 'my @foo = glob "*[a-z].html"; print "@foo\n";'
bar.html foo.html
$ perl -e 'my @foo = glob "./*[a-z].html"; print "@foo\n";'
./bar.html ./foo.html

So there is probably something other than glob issues at work.

I suggest modifying your copy of dh_install to add some print
statements to debug this.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: