Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] "find -delete" command
@ 2008-12-05 12:52 Ryan Hajdaj
  0 siblings, 0 replies; only message in thread
From: Ryan Hajdaj @ 2008-12-05 12:52 UTC (permalink / raw)
  To: buildroot


I'd like to request that the following change be made to the top-level buildroot Makefile (lines 340 to 343 of the 20081205 version). This is mainly for portability, as the -delete option is not recognized by earlier versions of the find command.

--- Makefile    2008-12-05 03:15:46.000000000 -0500
+++ Makefile.new        2008-12-05 06:08:53.000000000 -0500
@@ -337,10 +337,10 @@
        ( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
 else
        rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig
-       find $(TARGET_DIR)/usr/lib -name '*.a' -delete
-       find $(TARGET_DIR)/lib -name '*.a' -delete
-       find $(TARGET_DIR)/usr/lib -name '*.la' -delete
-       find $(TARGET_DIR)/lib -name '*.la' -delete
+       find $(TARGET_DIR)/usr/lib -name '*.a' -exec rm {} \;
+       find $(TARGET_DIR)/lib -name '*.a' -exec rm {} \;
+       find $(TARGET_DIR)/usr/lib -name '*.la' -exec rm {} \;
+       find $(TARGET_DIR)/lib -name '*.la' -exec rm {} \;
 endif


Note: This change also applies to the following files:
.svn/text-base/Makefile.svn-base
package/x11r7/xapp_xman/xapp_xman.mk
package/x11r7/xapp_xman/.svn/text-base/xapp_xman.mk.svn-base
package/x11r7/xdata_xcursor-themes/xdata_xcursor-themes.mk
package/x11r7/xdata_xcursor-themes/.svn/text-base/xdata_xcursor-themes.mk.svn-base



      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-05 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 12:52 [Buildroot] "find -delete" command Ryan Hajdaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox