luci-app-diskman: fix path to source

This commit is contained in:
CN_SZTL 2020-12-27 00:31:32 +08:00
parent dfeccb8df3
commit 574a39718d
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -75,9 +75,9 @@ define Package/$(PKG_NAME)/install
# $(INSTALL_DIR) $(1)/www
# cp -pR $(PKG_BUILD_DIR)/htdoc/* $(1)/www
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
cp -pR $(PKG_BUILD_DIR)/luasrc/* $(1)/usr/lib/lua/luci/
cp -pR $(PKG_BUILD_DIR)/applications/$(PKG_NAME)/luasrc/* $(1)/usr/lib/lua/luci/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$$(foreach po,$$(shell find $(PKG_BUILD_DIR)/po/*/*.po), \
$$(foreach po,$$(shell find $(PKG_BUILD_DIR)/applications/$(PKG_NAME)/po/*/*.po), \
po2lmo $$(po) \
$(1)/usr/lib/lua/luci/i18n/diskman.$$(shell echo $$(po) | awk -F'/' '{print $$$$(NF-1)}').lmo;)
#po2lmo $(PKG_BUILD_DIR)/po/zh-cn/diskman.po $(1)/usr/lib/lua/luci/i18n/diskman.zh-cn.lmo