From 404b6a03ac911d63467aa26a21d6b4a2ebd94935 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 16 Sep 2013 04:49:38 +0200 Subject: [PATCH] FIXME_list.sh, add_parens_for_own_funcs.sh, find_dots_no_parens.sh, find_repeated_words.sh, find_slashes_no_parens.sh, remove_COLOPHON.sh, unformat_parens.sh: Add copyright and license Reported-by: Felix Janda Signed-off-by: Michael Kerrisk --- scripts/FIXME_list.sh | 27 +++++++++++++++++++++++++++ scripts/add_parens_for_own_funcs.sh | 13 +++++++++++++ scripts/find_dots_no_parens.sh | 15 +++++++++++++++ scripts/find_repeated_words.sh | 15 +++++++++++++++ scripts/find_slashes_no_parens.sh | 15 +++++++++++++++ scripts/remove_COLOPHON.sh | 15 +++++++++++++++ scripts/unformat_parens.sh | 13 +++++++++++++ 7 files changed, 113 insertions(+) diff --git a/scripts/FIXME_list.sh b/scripts/FIXME_list.sh index 31f1a6e9e..81494d62d 100644 --- a/scripts/FIXME_list.sh +++ b/scripts/FIXME_list.sh @@ -4,6 +4,33 @@ # # Display FIXME segments from man-pages source files # +# (C) Copyright 2007 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +###################################################################### +# +# (C) Copyright 2006 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +# show_all="n" while getopts "a" optname; do diff --git a/scripts/add_parens_for_own_funcs.sh b/scripts/add_parens_for_own_funcs.sh index 3d131ff24..1bf6d2ac6 100644 --- a/scripts/add_parens_for_own_funcs.sh +++ b/scripts/add_parens_for_own_funcs.sh @@ -53,6 +53,19 @@ # ###################################################################### # +# (C) Copyright 2005 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +# # file_base="tmp.$(basename $0)" diff --git a/scripts/find_dots_no_parens.sh b/scripts/find_dots_no_parens.sh index f772305cf..79d1c321c 100644 --- a/scripts/find_dots_no_parens.sh +++ b/scripts/find_dots_no_parens.sh @@ -18,6 +18,21 @@ # # cd man-pages-x.yy # sh find_dots_no_parens.sh . man?/*.? > matches.log +# +###################################################################### +# +# (C) Copyright 2005 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# if test $# -lt 2; then echo "Usage: $0 man-page-root-dir file file..." 1>&2 diff --git a/scripts/find_repeated_words.sh b/scripts/find_repeated_words.sh index 806b74789..50133be8a 100644 --- a/scripts/find_repeated_words.sh +++ b/scripts/find_repeated_words.sh @@ -8,6 +8,21 @@ # # Usage: sh find_repeated_words.sh [file...] # +###################################################################### +# +# (C) Copyright 2007 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +# for file in "$@" ; do words=$(MANWIDTH=2000 man -l "$file" 2> /dev/null | col -b | \ diff --git a/scripts/find_slashes_no_parens.sh b/scripts/find_slashes_no_parens.sh index 1b4c0c498..086faac07 100644 --- a/scripts/find_slashes_no_parens.sh +++ b/scripts/find_slashes_no_parens.sh @@ -18,6 +18,21 @@ # # cd man-pages-x.yy # sh find_slashes_no_parens.sh . man?/*.? > matches.log +# +###################################################################### +# +# (C) Copyright 2005 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# if test $# -lt 2; then echo "Usage: $0 man-page-root-dir file file..." 1>&2 diff --git a/scripts/remove_COLOPHON.sh b/scripts/remove_COLOPHON.sh index 0f56d203d..712106656 100644 --- a/scripts/remove_COLOPHON.sh +++ b/scripts/remove_COLOPHON.sh @@ -8,6 +8,21 @@ # in order to do a "diff -ruN" to see the "real" differences between # the trees.) # +###################################################################### +# +# (C) Copyright 2008 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +# for f in "$@"; do sed -i '/^\.SH COLOPHON/,$d' "$f" done diff --git a/scripts/unformat_parens.sh b/scripts/unformat_parens.sh index 977994d23..06bbb48cd 100644 --- a/scripts/unformat_parens.sh +++ b/scripts/unformat_parens.sh @@ -20,6 +20,19 @@ # ###################################################################### # +# (C) Copyright 2005 & 2013, Michael Kerrisk +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details +# (http://www.gnu.org/licenses/gpl-2.0.html). +# +# file_base="tmp.$(basename $0)"