summaryrefslogtreecommitdiffstats
path: root/scripts/find_slashes_no_parens.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/find_slashes_no_parens.sh')
-rwxr-xr-xscripts/find_slashes_no_parens.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/find_slashes_no_parens.sh b/scripts/find_slashes_no_parens.sh
index 086faac..c53034a 100755
--- a/scripts/find_slashes_no_parens.sh
+++ b/scripts/find_slashes_no_parens.sh
@@ -8,13 +8,13 @@
# This script is designed to help with "by hand" tidy-ups after
# the automated changes made by add_parens_for_own_funcs.sh.
#
-# The first argument to this script names a manual page directory where
-# 'man2' and 'man3' subdirectories can be found. The pages names in
-# these directories are used to generate a series of regular expressions
-# that can be used to search the manual page files that are named in
+# The first argument to this script names a manual page directory where
+# 'man2' and 'man3' subdirectories can be found. The pages names in
+# these directories are used to generate a series of regular expressions
+# that can be used to search the manual page files that are named in
# the remaining command-line arguments.
#
-# Example usage:
+# Example usage:
#
# cd man-pages-x.yy
# sh find_slashes_no_parens.sh . man?/*.? > matches.log
@@ -26,7 +26,7 @@
# 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
@@ -53,14 +53,14 @@ echo "This will probably take a few minutes..." 1>&2
regexp_file=tmp.$0.regexp
rm -f $regexp_file
-# We grep out a few page names that are likely to generate false
+# We grep out a few page names that are likely to generate false
# positives...
for page in $(
- find $dir/man2/* $dir/man3/* -type f -name '*.[23]' |
+ find $dir/man2/* $dir/man3/* -type f -name '*.[23]' |
egrep -v '/(stderr|stdin|stdout|errno|termios|string)\..$'); do
-
+
base=$(basename $page | sed -e 's/\.[23]$//')
echo "\\\\f[BI]$base\\\\f[PB][^(]" >> $regexp_file