Blame libopeniscsiusr/docs/doc-preclean.pl

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