Dear Busybox list, I'm working on updating the Busybox version in the FreeBSD ports, and the first stumbling block I have is that in BSD find the path argument is non-optional.
Were you to apply this patch, it'd only improve the portability; it makes the code more 'correct'. Let me know what you think... Chris
diff --git a/Makefile b/Makefile index 6985437..f0c688e 100644 --- a/Makefile +++ b/Makefile @@ -984,7 +984,7 @@ $(clean-dirs): clean: archclean $(clean-dirs) $(call cmd,rmdirs) $(call cmd,rmfiles) - @find . $(RCS_FIND_IGNORE) \ + @find $(RCS_FIND_IGNORE) \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ -type f -print | xargs rm -f @@ -1008,8 +1008,8 @@ $(mrproper-dirs): mrproper: clean archmrproper $(mrproper-dirs) $(call cmd,rmdirs) $(call cmd,rmfiles) - @find -name Config.src | sed 's/.src$$/.in/' | xargs -r rm -f - @find -name Kbuild.src | sed 's/.src$$//' | xargs -r rm -f + @find . -name Config.src | sed 's/.src$$/.in/' | xargs -r rm -f + @find . -name Kbuild.src | sed 's/.src$$//' | xargs -r rm -f # distclean #
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
