Lines Matching +full:paths +full:- +full:ignore

3 # SPDX-License-Identifier: BSD-4-Clause
40 # this is now two-pass. If possible, .so's
44 # Hard links - careful with g(un)zipping!
45 # .so's - throw everything through soelim before gzip!
46 # symlinks - ignore these - eg: expn is its own man page:
64 # less than 3 fields - don't know what to do with this
65 if [ $# -lt 3 ] ; then
70 while [ $# -gt 2 ] ; do
87 temp=`mktemp -t manager` || exit 1
88 gunzip -c $pname > $temp
93 rm -f $temp
95 # skip symlinks - this can be
106 # reset IFS - this is important!
112 # Uncompress manpages in paths
122 if [ -d $1 ] ; then
127 *cat?) ;; # ignore cat directories
129 if [ -d $i ] ; then
132 if [ -e $i ] ; then
155 so_entries=`grep "^\.so" $1 | wc -l`
156 if [ $so_entries -eq 0 ] ; then return 0 ; fi
162 lines=`wc -l < $1`
166 if [ $lines -eq 1 ] ; then
170 rm -f $fname
174 temp=`mktemp -t manager` || exit 1
180 rm -f $temp
198 if [ $# -lt 2 ] ; then
203 while [ $# -gt 1 ] ; do
223 # skip symlink - this can be
234 # reset IFS - this is important!
252 if [ $# -lt 2 ] ; then
257 while [ $# -gt 1 ] ; do
275 temp=`mktemp -t manager` || exit 1
277 (cd .. ; soelim )| gzip -c -- > $temp
282 rm -f $temp
284 # skip symlink - this can be
295 # reset IFS - this is important!
300 # Compress man pages in paths
313 if [ -d $1 ] ; then
318 *cat?) ;; # ignore cat directories
320 if [ -d $i ] ; then
323 if [ -e $i ] ; then
342 echo "usage: $1 -compress <path> ... " 1>&2
343 echo " $1 -uncompress <path> ... " 1>&2
361 if [ $# -lt 2 ] ; then ctl_usage $0 ; fi ;
364 -compress) shift ; do_compress "$@" ;;
365 -uncompress) shift ; do_uncompress "$@" ;;