From 4b2bc748fd85a62f30c0f669d61ccfbcacb786c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 2 Nov 2014 13:47:08 +0000 Subject: [PATCH] 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 --- mkpkgng.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 }"