<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><div>For no misunderstanding.Here is the error now</div><div>http://pastebin.com/t4Rb08kA</div><div><br></div><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br><pre><br>ÔÚ 2016-01-04 21:18:14£¬"Andy Wong" <axisaxisgz@163.com> Ð´µÀ£º
>Thanks.I have indented like this£º<br/>define Package/openwrt-dist-luci/install<br/>#!/bin/sh<br/>        $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller<br/>      $(INSTALL_DATA) ./files/luci/controller/$(2).lua $(1)/usr/lib/lua/luci/controller/$(2).lua<br/>   $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi<br/>       $(INSTALL_DATA) ./files/luci/model/cbi/$(2).lua $(1)/usr/lib/lua/luci/model/cbi/$(2).lua<br/>     $(INSTALL_DIR) $(1)/etc/uci-defaults<br/> $(INSTALL_BIN) ./files/root/etc/uci-defaults/luci-$(2) $(1)/etc/uci-defaults/luci-$(2)<br/>       if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then<br/> $(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n<br/>    $(INSTALL_DATA) ./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n<br/>  fi<br/>endef<br/><br/>But another error appears:<br/>enwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/openwrt-dist-luci/ipkg-all/luci-app-chinadns/etc/uci-defaults/luci-chinadns<br/>if [ -f "./files/luci/i18n/chinadns.zh-cn.lmo" ]; then<br/>bash: -c: line 1: syntax error: unexpected end of file<br/>make[2]: *** [/home/Openwrt/witi-openwrt/bin/ramips/packages/base/luci-app-chinadns_1.3.8-1_all.ipk] Error 1<br/>make[2]: Leaving directory `/home/Openwrt/witi-openwrt/package/my_package/openwrt-dist-luci'<br/>make[1]: *** [package/my_package/openwrt-dist-luci/compile] Error 2<br/>make[1]: Leaving directory `/home/Openwrt/witi-openwrt'<br/>make: *** [package/openwrt-dist-luci/compile] ´íÎó 2<br/><br/>My if,then course is intending to find out if *.zh-cn.lmo exist,then install it.
>At 2016-01-04 20:20:00, "Jo-Philipp Wich" <jow@openwrt.org> wrote:
>>Hi.
>>
>>Lines in the isntall section must be indented with at least one tab
>>since they're shell instructions.
>>
>>~ Jow
>>_______________________________________________
>>openwrt-devel mailing list
>>openwrt-devel@lists.openwrt.org
>>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>_______________________________________________
>openwrt-devel mailing list
>openwrt-devel@lists.openwrt.org
>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
</pre></div><br><br><span title="neteasefooter"><p> </p></span>