123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- --- a/feeds/luci/luci.mk
- +++ b/feeds/luci/luci.mk
- @@ -82,7 +82,7 @@ define findrev
- set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- $(if $(1),. ':(exclude)po',po)); \
- if [ -n "$$1" ]; then
- secs="$$(($$1 % 86400))"; \
- - yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
- + yday="$$(date --utc --date="@$$(($$1 + 365*24*60*60))" "+%y.%j")"; \
- printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
- else \
- echo "unknown"; \
- @@ -206,9 +206,14 @@ define Package/$(PKG_NAME)/install
- $(call Build/Install/Default) \
- $(CP) $(PKG_INSTALL_DIR)/* $(1)/; \
- else true; fi
- + $(INSTALL_DIR) $(1)$(LUCI_LIBRARYDIR)/i18n
- + $(foreach po,$(wildcard ${CURDIR}/po/zh_Hans/*.po), \
- + po2lmo $(po) \
- + $(1)$(LUCI_LIBRARYDIR)/i18n/$(basename $(notdir $(po))).zh-cn.lmo;)
- endef
-
- ifndef Package/$(PKG_NAME)/postinst
- +ifneq ($(wildcard ${CURDIR}/htdocs/luci-static/resources/view),)
- define Package/$(PKG_NAME)/postinst
- [ -n "$${IPKG_INSTROOT}" ] || { \
- rm -f /tmp/luci-indexcache
- @@ -217,7 +222,18 @@ define Package/$(PKG_NAME)/postinst
- exit 0
- }
- endef
- +else
- +define Package/$(PKG_NAME)/postinst
- +[ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS),
- + (. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script))
- + rm -f /tmp/luci-indexcache
- + rm -rf /tmp/luci-modulecache/
- + exit 0
- +}
- +endef
- endif
- +endif
- +
-
- # some generic macros that can be used by all packages
- ifeq ($(LUCI_MINIFY_JS),1)
|