Blame libopeniscsiusr/docs/doc-preclean.pl
|
Packit |
eace71 |
#!/usr/bin/perl
|
|
Packit |
eace71 |
# Copyright (C) 2016 Red Hat, Inc.
|
|
Packit |
eace71 |
#
|
|
Packit |
eace71 |
# This program is free software: you can redistribute it and/or modify
|
|
Packit |
eace71 |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
eace71 |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
eace71 |
# (at your option) any later version.
|
|
Packit |
eace71 |
#
|
|
Packit |
eace71 |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
eace71 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
eace71 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
eace71 |
# GNU General Public License for more details.
|
|
Packit |
eace71 |
#
|
|
Packit |
eace71 |
# You should have received a copy of the GNU General Public License
|
|
Packit |
eace71 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
eace71 |
#
|
|
Packit |
eace71 |
# Author: Gris Ge <fge@redhat.com>
|
|
Packit |
eace71 |
|
|
Packit |
eace71 |
use strict;
|
|
Packit |
eace71 |
|
|
Packit |
eace71 |
my @REMOVE_KEY_LIST=("__DLL_EXPORT");
|
|
Packit |
eace71 |
|
|
Packit |
eace71 |
while (<>) {
|
|
Packit |
eace71 |
for my $key (@REMOVE_KEY_LIST) {
|
|
Packit |
eace71 |
(s/$key//g);
|
|
Packit |
eace71 |
}
|
|
Packit |
eace71 |
print;
|
|
Packit |
eace71 |
}
|