Make sure we package symlinks as well as files, but don't package .la files.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@838 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2014-11-02 13:47:08 +00:00
parent 273bae0b16
commit 4b2bc748fd
1 changed files with 10 additions and 2 deletions

View File

@ -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 }"