Well, I should clarify. Let "dir" contain README and many other files with no specific pattern.
README is to be included in package (not to be excluded), but into one location, but all other files are to go into another location. For now I have to write in pkg.install: dir/README /location/one/ dir/file1 /location/two dir/file2 /location/two dir/file3 /location/two dir/file4 /location/two dir/file5 /location/two ..... and so on. With negative wildcards it can be: dir/README /location/one/ dir/!(README) /location/two/ Quite simple :-) 2011/7/6 Igor Pashev <pashev.i...@gmail.com> > 06.07.2011 21:04, Joey Hess пишет: > > Igor Pashev wrote: > >> Suppose we want to install all files within "dir/", but README. > >> > >> We could use this line in <pkg>.install: > >> > >> dir/!(README) /usr/libexec/dir/ > >> > >> [just like bash shopt -s extglob] > > > > debhelper already has a mechanism for this, the -X flag. > > > > But with this flag I have to override in debian/rules, yes? >