diff --git a/mkpkgng.in b/mkpkgng.in index e70a1b1..d86bc16 100644 --- a/mkpkgng.in +++ b/mkpkgng.in @@ -124,6 +124,10 @@ while read mandir ; do while read manpage ; do gzip "$manpage" done + find $mandir -type l -name '*.[0-9]' | + while read manlink ; do + ln -s "$(readlink $manlink).gz" "$manlink.gz" + done done # @@ -150,8 +154,12 @@ cp "$srcdir/README" "$tmproot/+DESC" info "Generating the file list." ( echo "files: {" - find -s "$tmproot@prefix@" -type f | while read file ; do - [ "$file" = "$manifest" ] && continue + find -s "$tmproot@prefix@" -type f -or -type l | while read file ; do + case $file in + *.la) + continue + ;; + esac mode=$(stat -f%p "$file" | cut -c 3-) file="${file#$tmproot}" echo " $file: { uname: root, gname: wheel, perm: $mode }"