Codebase list debian-goodies / d13a05b
do not loop over section, the redirector is smart enough this improves performance by O(n) where n is the section number Antoine Beaupré 7 years ago
1 changed file(s) with 5 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
6565
6666 mandir=`mktemp -d dman.XXXXXX`
6767 trap "rm -rf $mandir" EXIT HUP INT QUIT TERM
68 for i in `seq 1 9`; do
69 man="$mandir/$i"
70 if wget -O "$man" "$URL/$DISTRIB_CODENAME/manpages$LOCPATH/$PAGE.$i$LOCDOT.gz" 2>/dev/null; then
71 echo man $MAN_ARGS -l "$man" || true
72 fi
73 rm -f "$man"
74 done
68 man="$mandir/$PAGE"
69 if wget -O "$man" "$URL/$DISTRIB_CODENAME/manpages$LOCPATH/$PAGE$LOCDOT.gz" 2>/dev/null; then
70 echo man $MAN_ARGS -l "$man" || true
71 exit 0
72 fi