diff options
author | Judd Vinet <judd@archlinux.org> | 2004-09-18 20:37:34 +0200 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-09-18 20:37:34 +0200 |
commit | 4ffc53b3398ae845183f991a56207459256cc9e9 (patch) | |
tree | f71a9fa0c0ab1bc87dd84cf07828fe95efbb849f /scripts/makepkg | |
parent | afc0d9a3c45b70edd948ce0be4a5e81d4da00c7e (diff) | |
download | pacman-4ffc53b3398ae845183f991a56207459256cc9e9.tar.gz pacman-4ffc53b3398ae845183f991a56207459256cc9e9.tar.xz |
Imported from pacman-2.9.tar.gz
Diffstat (limited to 'scripts/makepkg')
-rwxr-xr-x | scripts/makepkg | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/makepkg b/scripts/makepkg index 8f4103e5..98e2acc3 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -20,7 +20,7 @@ # USA. # -myver='2.8.4' +myver='2.9' startdir=`pwd` PKGDEST=$startdir USE_COLOR="n" @@ -576,17 +576,17 @@ fi # compress man pages msg "Compressing man pages..." -for i in `find pkg/{usr{,/local},opt/*}/man -type f 2>/dev/null`; do - ext=${i##*.} - fn=${i##*/} - if [ "$ext" != "gz" ]; then +find $startdir/pkg/{usr{,/local,/share},opt/*}/man -type f 2>/dev/null | while read i ; do + ext="${i##*.}" + fn="${i##*/}" + if [ "$ext" != "gz" -a "$ext" != "bz2" ]; then # update symlinks to this manpage - for ln in `find pkg/{usr{,/local},opt/*}/man -lname "$fn" 2>/dev/null`; do - rm -f $ln - ln -sf ${fn}.gz ${ln}.gz + find $startdir/pkg/{usr{,/local,/share},opt/*}/man -lname "$fn" 2> /dev/null | while read ln ; do + rm -f "$ln" + ln -sf "${fn}.gz" "${ln}.gz" done # compress the original - gzip -9 $i + gzip -9 "$i" fi done |