1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

makepkg: add explicit dir to find calls

Some of the find calls did not have a path, which isn't valid in some
versions of the find utility. Add a . for compatibility.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-10-28 21:18:39 -05:00
parent 8a9c83dd4b
commit 3e3e7a97a6

View File

@ -752,12 +752,12 @@ tidy_install() {
if [ "$(check_option libtool)" = "n" ]; then
msg2 "$(gettext "Removing libtool .la files...")"
find -type f -name "*.la" -exec rm -f -- '{}' \;
find . -type f -name "*.la" -exec rm -f -- '{}' \;
fi
if [ "$(check_option emptydirs)" = "n" ]; then
msg2 "$(gettext "Removing empty directories...")"
find -depth -type d -empty -delete
find . -depth -type d -empty -delete
fi
}
@ -785,7 +785,7 @@ create_package() {
# - find all other files/links
# - grep out dot files in root dir (e.g. .FILELIST .PKGINFO...)
# - sort the list
find -mindepth 1 \( -type d -printf '%P/\n' \) , \( ! -type d -printf '%P\n' \) \
find . -mindepth 1 \( -type d -printf '%P/\n' \) , \( ! -type d -printf '%P\n' \) \
2>/dev/null | grep -v '^\.' | sort >.FILELIST
# write the .PKGINFO file