| 1 |
#!/usr/bin/ruby -EUTF-8 |
| 2 |
# |
| 3 |
# Copyright © 2015, Christian Hofstaedtler <[email protected]> |
| 4 |
# |
| 5 |
# This program is free software: you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation, either version 3 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
require 'gem2deb' |
| 19 |
require 'gem2deb/dh_ruby' |
| 20 |
include Gem2Deb |
| 21 |
|
| 22 |
`dh_listpackages`.split.each do |package| |
| 23 |
Dir.glob("debian/#{package}/usr/share/doc/**/created.rid").each do |path| |
| 24 |
next if File.directory?(path) |
| 25 |
File.unlink(path) |
| 26 |
end |
| 27 |
end |
| 28 |
__END__ |
| 29 |
=head1 NAME |
| 30 |
|
| 31 |
dh_ruby_fixdocs - remove unused files from rdoc directories |
| 32 |
|
| 33 |
=head1 SYNOPSIS |
| 34 |
|
| 35 |
B<dh_ruby_fixdocs> |
| 36 |
|
| 37 |
=head1 DESCRIPTION |
| 38 |
|
| 39 |
B<dh_ruby_fixdocs> is called by the I<ruby> dh sequence. You should |
| 40 |
not call it directly. |
| 41 |
|
| 42 |
=head1 SEE ALSO |
| 43 |
|
| 44 |
L<B<gem2deb>>(1), L<B<dh_ruby>>(1) |
| 45 |
|
| 46 |
=head1 COPYRIGHT AND AUTHORS |
| 47 |
|
| 48 |
Copyright (c) 2015, Christian Hofstaedtler <[email protected]> |
| 49 |
|
| 50 |
This program is free software: you can redistribute it and/or modify |
| 51 |
it under the terms of the GNU General Public License as published by |
| 52 |
the Free Software Foundation, either version 3 of the License, or |
| 53 |
(at your option) any later version. |
| 54 |
|
| 55 |
This program is distributed in the hope that it will be useful, |
| 56 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 57 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 58 |
GNU General Public License for more details. |
| 59 |
|
| 60 |
You should have received a copy of the GNU General Public License |
| 61 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |