[luci] [LuCI] #133: Build script /build/module.mk doesn't work properly on my openwrt box because of find doesn't use the option "-or"

LuciTrac trac at luci.subsignal.org
Tue Jun 22 12:03:39 CEST 2010


#133: Build script /build/module.mk doesn't work properly on my openwrt box
because of find doesn't use the option "-or"
-----------------------+----------------------------------------------------
 Reporter:  reporter   |       Owner:                
     Type:  defect     |      Status:  new           
 Priority:  blocker    |   Milestone:  LuCI 0.10.0   
Component:  LuCI Base  |    Keywords:  module.mk find
-----------------------+----------------------------------------------------
 Hi guys,

 On my OpenWRT box I tried to 'make' a module for luci and it gave a error
 message that the 'find' application built-in the busybox doesn't use the
 '-or' option which is stated in the '/build/module.mk' the 'find' version
 which is built-in the busybox does use the '-o' option so I changed it and
 it does work.
 Below is a diff for the '/build/module.mk' file.
 This shouldn't break anything because all 'find' versions do have the '-o'
 function, the '-or' function is a alias for the '-o' function and
 therefore not available on the built-in busybox version.

 Regards,
 Priyantha Bleeker
 priyantha.bleeker AT gmail.com

 {{{
 --- module.mk
 +++ ../../trunk-old/build/module.mk
 @@ -23,7 +23,7 @@
         cp -pR luasrc/* dist$(LUCI_MODULEDIR) 2>/dev/null || true
         cp -pR lua/* dist$(LUA_MODULEDIR) 2>/dev/null || true
         cp -pR htdocs/* dist$(HTDOCS) 2>/dev/null || true
 -       for i in $$(find dist -name .svn -o -name .gitignore); do rm -rf
 $$i || true; done
 +       for i in $$(find dist -name .svn -or -name .gitignore); do rm -rf
 $$i || true; done
    ifneq ($(PO),)
         mkdir -p dist$(LUCI_I18NDIR)
         for file in $(PO); do \
 }}}

-- 
Ticket URL: <http://luci.subsignal.org/ticket/133>
LuCI <http://luci.subsignal.org>
LuCI - Lua Configuration Interface


More information about the luci mailing list