mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
build: luci.mk: fix compatibility with older Git versions
Fixes: 9d8e99f9b
build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
09a8460750
commit
62be45c466
2
luci.mk
2
luci.mk
@ -64,7 +64,7 @@ PKG_NAME?=$(LUCI_NAME)
|
||||
define findrev
|
||||
$(shell \
|
||||
if git log -1 >/dev/null 2>/dev/null; then \
|
||||
set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- '$(if $(1),:(exclude))po'); \
|
||||
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")"; \
|
||||
|
Loading…
Reference in New Issue
Block a user