mirror of https://github.com/mkerrisk/man-pages
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 <felix.janda@posteo.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
87b8bb4eef
commit
404b6a03ac
|
@ -4,6 +4,33 @@
|
||||||
#
|
#
|
||||||
# Display FIXME segments from man-pages source files
|
# 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"
|
show_all="n"
|
||||||
while getopts "a" optname; do
|
while getopts "a" optname; do
|
||||||
|
|
|
@ -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)"
|
file_base="tmp.$(basename $0)"
|
||||||
|
|
|
@ -18,6 +18,21 @@
|
||||||
#
|
#
|
||||||
# cd man-pages-x.yy
|
# cd man-pages-x.yy
|
||||||
# sh find_dots_no_parens.sh . man?/*.? > matches.log
|
# 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
|
if test $# -lt 2; then
|
||||||
echo "Usage: $0 man-page-root-dir file file..." 1>&2
|
echo "Usage: $0 man-page-root-dir file file..." 1>&2
|
||||||
|
|
|
@ -8,6 +8,21 @@
|
||||||
#
|
#
|
||||||
# Usage: sh find_repeated_words.sh [file...]
|
# 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
|
for file in "$@" ; do
|
||||||
words=$(MANWIDTH=2000 man -l "$file" 2> /dev/null | col -b | \
|
words=$(MANWIDTH=2000 man -l "$file" 2> /dev/null | col -b | \
|
||||||
|
|
|
@ -18,6 +18,21 @@
|
||||||
#
|
#
|
||||||
# cd man-pages-x.yy
|
# cd man-pages-x.yy
|
||||||
# sh find_slashes_no_parens.sh . man?/*.? > matches.log
|
# 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
|
if test $# -lt 2; then
|
||||||
echo "Usage: $0 man-page-root-dir file file..." 1>&2
|
echo "Usage: $0 man-page-root-dir file file..." 1>&2
|
||||||
|
|
|
@ -8,6 +8,21 @@
|
||||||
# in order to do a "diff -ruN" to see the "real" differences between
|
# in order to do a "diff -ruN" to see the "real" differences between
|
||||||
# the trees.)
|
# 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
|
for f in "$@"; do
|
||||||
sed -i '/^\.SH COLOPHON/,$d' "$f"
|
sed -i '/^\.SH COLOPHON/,$d' "$f"
|
||||||
done
|
done
|
||||||
|
|
|
@ -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)"
|
file_base="tmp.$(basename $0)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue