lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 15.09-beta 27 lines 670 B view raw
1fixupOutputHooks+=('if [ -z "$dontGzipMan" ]; then compressManPages "$prefix"; fi') 2 3compressManPages() { 4 local dir="$1" 5 6 echo "gzipping man pages in $dir" 7 8 GLOBIGNORE=.:..:*.gz:*.bz2 9 10 for f in "$dir"/share/man/*/* "$dir"/share/man/*/*/*; do 11 if [ -f "$f" -a ! -L "$f" ]; then 12 if gzip -c -n "$f" > "$f".gz; then 13 rm "$f" 14 else 15 rm "$f".gz 16 fi 17 fi 18 done 19 20 for f in "$dir"/share/man/*/* "$dir"/share/man/*/*/*; do 21 if [ -L "$f" -a -f `readlink -f "$f"`.gz ]; then 22 ln -sf `readlink "$f"`.gz "$f".gz && rm "$f" 23 fi 24 done 25 26 unset GLOBIGNORE 27}