Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=b2e768e6494f2530d11b9148699d3a3df5ab6be2

commit b2e768e6494f2530d11b9148699d3a3df5ab6be2
Author: James Buren <[EMAIL PROTECTED]>
Date:   Thu Jul 24 20:17:53 2008 -0500

makepkg
* fixes auto-installation of docs of size 0 bytes
* forces mode 644 for permissions, in case the files original permissions
* are different, to prevent a situation where non-root users would be unable
* to read the documentation
* closes #3242

diff --git a/scripts/makepkg b/scripts/makepkg
index 6fefcae..9979b8c 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1549,10 +1549,10 @@ done
msg "Preparing package documentation..."
if [ ! "`check_option NODOCS`" -a "$NODOCS" = "0" ]; then
mkdir -p pkg/usr/share/doc/$pkgname-$pkgver
-       find src -maxdepth 2 \( \
+       find src -maxdepth 2 -size +0b \( \
-name ANNOUNCE \
-or -name AUTHORS \
-               -or -name '*BUGS*' \
+               -or -name '*BUGS*' \
-or -name CHANGES \
-or -name CONFIGURATION \
-or -name '*COPYING*' \
@@ -1584,7 +1584,7 @@ if [ ! "`check_option NODOCS`" -a "$NODOCS" = "0" ]; then
-or -name VERSION \
-or -name 'CONFIGURATION*' \
-or -name GPLLicense \
-               \) -exec cp -a '{}' pkg/usr/share/doc/$pkgname-$pkgver/ \;
+               \) -exec install -pm 644 '{}' 
pkg/usr/share/doc/$pkgname-$pkgver/ \;
fi
for d in $startdir/{pkg,pkg.*}
do
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to