build system: small fix for "release" target to work
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 12 Dec 2006 23:46:31 +0000 (23:46 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 12 Dec 2006 23:46:31 +0000 (23:46 -0000)
Makefile.custom
libbb/recursive_action.c

index 816bee5db7be5e555d91f0695c2495aa03e476f5..e976e739e8194f5cdc01e18eaf1065090277f3b5 100644 (file)
@@ -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:
index 05ff5d84fd2201b6d9ad621efcce20fb4007a95c..121a3dffdb5ea40d2647d3b560f6988170039871 100644 (file)
@@ -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;