summaryrefslogtreecommitdiffhomepage
path: root/luci.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-14 18:42:33 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-14 18:42:36 +0200
commitb9dda90716a2c7ae0a215f24fbdd48c923b67ddd (patch)
tree800edce8b759decd436d4084eb95266e8d0202d2 /luci.mk
parente6f77d5d72c0e13ed3eb370419abab52c4920a32 (diff)
Revert "build: luci.mk: gracefully handle missing or unversioned po subdirectories"
This reverts commit e6f77d5d72c0e13ed3eb370419abab52c4920a32. Commit contained unrelated changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'luci.mk')
-rw-r--r--luci.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/luci.mk b/luci.mk
index 0b3a66e3b..621008aa8 100644
--- a/luci.mk
+++ b/luci.mk
@@ -65,13 +65,9 @@ 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'); \
- if [ -n "$$1" ]; then
- secs="$$(($$1 % 86400))"; \
- yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
- printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
- else \
- echo "unknown"; \
- fi; \
+ secs="$$(($$1 % 86400))"; \
+ yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
+ printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
else \
ts=$$(find . -type f $(if $(1),-not) -path './po/*' -printf '%T@\n' 2>/dev/null | sort -rn | head -n1 | cut -d. -f1); \
if [ -n "$$ts" ]; then \