From 3e3e7a97a629cc86a53044766039c66d85cf67cb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 28 Oct 2007 21:18:39 -0500 Subject: 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 --- scripts/makepkg.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ed511755..831c1bda 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3-70-g09d2