| 1 |
# |
| 2 |
# fstrcmp - fuzzy string compare library |
| 3 |
# Copyright (C) 2012 Peter Miller |
| 4 |
# Written by Peter Miller <[email protected]> |
| 5 |
# |
| 6 |
# This program is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation; either version 3 of the License, or (at |
| 9 |
# your option) any later version. |
| 10 |
# |
| 11 |
# This program is distributed in the hope that it will be useful, |
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
# General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
# |
| 19 |
BEGIN { |
| 20 |
prev_was_license = "" |
| 21 |
} |
| 22 |
/^Upstream-Name: / { |
| 23 |
print "Upstream-Name: fstrcmp" |
| 24 |
next |
| 25 |
} |
| 26 |
/^Upstream-Contact: / { |
| 27 |
print "Upstream-Contact: Peter Miller <[email protected]>" |
| 28 |
next |
| 29 |
} |
| 30 |
/^Source: / { |
| 31 |
print "Source: http://fstrcmp.sourceforge.net/" |
| 32 |
next |
| 33 |
} |
| 34 |
/^License: / { |
| 35 |
prev_was_license = $2; |
| 36 |
print |
| 37 |
next |
| 38 |
} |
| 39 |
/^Disclaimer: Autogenerated/ { |
| 40 |
next |
| 41 |
} |
| 42 |
/^ FIXME$/ { |
| 43 |
if (prev_was_license == "GPL-3+") |
| 44 |
{ |
| 45 |
print " On Debian systems, the complete text of the GNU" |
| 46 |
print " General Public License, version 3, can be found in" |
| 47 |
print " /usr/share/common-licenses/GPL-3." |
| 48 |
} |
| 49 |
else if (prev_was_license != "") |
| 50 |
{ |
| 51 |
print " The licenses covering these files are unknown." |
| 52 |
} |
| 53 |
else |
| 54 |
{ |
| 55 |
print $0 |
| 56 |
} |
| 57 |
prev_was_license = "" |
| 58 |
next |
| 59 |
} |
| 60 |
{ |
| 61 |
print |
| 62 |
prev_was_license = "" |
| 63 |
} |
| 64 |
|
| 65 |
# vim: set ts=8 sw=4 et : |