From 5e2db5e8ee527ef35f3654fdeaac9a9efe7b9eb9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 12 Dec 2006 23:46:31 +0000 Subject: [PATCH] build system: small fix for "release" target to work --- Makefile.custom | 8 ++++---- libbb/recursive_action.c | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile.custom b/Makefile.custom index 816bee5db..e976e739e 100644 --- a/Makefile.custom +++ b/Makefile.custom @@ -46,17 +46,17 @@ check test: busybox release: distclean cd ..; \ rm -r -f busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); \ - cp -a busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && \ + cp -a busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \ find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \ -name .svn \ -print \ - -exec rm -r -f {} \; && \ + -exec rm -r -f {} \; ; \ find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type f \ -name .\#* \ -print \ - -exec rm -f {} \; && \ + -exec rm -f {} \; ; \ tar -czf busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION).tar.gz \ - busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/; + busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ ; } .PHONY: checkhelp checkhelp: diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index 05ff5d84f..121a3dffd 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c @@ -93,6 +93,10 @@ int recursive_action(const char *fileName, dir = opendir(fileName); if (!dir) { + /* findutils-4.1.20 reports this */ + /* (i.e. it doesn't silently return with exit code 1) */ + /* To trigger: "find -exec rm -rf {} \;" */ + bb_perror_msg("%s", fileName); return FALSE; } status = TRUE;