Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=7af35c3bfe5555875bf2e2a5752fb386bc25427c
commit 7af35c3bfe5555875bf2e2a5752fb386bc25427c
Author: Marcus Habermehl <[EMAIL PROTECTED]>
Date: Sun Nov 25 00:43:39 2007 +0100
Remove unwanted files before preparing the package documentation.
diff --git a/scripts/makepkg b/scripts/makepkg
index 25703e0..4b13ce0 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1466,9 +1466,26 @@ elif [ ! -z "$SBU" ]; then
fi
fi
+cd $startdir
+
+# unwanted files
+msg "Removing unwanted files..."
+for f in `find pkg*/usr/lib/perl? -type f 2> /dev/null` ; do
+ case "$f" in
+ */.packlist|*/perllocal.pod)
+ rm -f "$f"
+ rmdir -p --ignore-fail-on-non-empty `dirname $f` 2>
/dev/null
+ ;;
+ esac
+done
+rm -f pkg*/{usr{,/local,/share},opt/*}/info/dir 2> /dev/null
+for f in `find pkg*/ -type f -name encodings.dir -o -type f -name fonts.dir -o
-type f -name fonts.scale` ; do
+ msg2 "`echo $f | sed 's|pkg[^/]\+||'`"
+ rm -f "$f"
+done
+
# documentation
msg "Preparing package documentation..."
-cd $startdir
if [ -d pkg/usr/doc ]; then
mkdir -p pkg/usr/share/doc
cp -a pkg/usr/doc/* pkg/usr/share/doc/
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git