Skip to content

Commit

Permalink
Make Makefile work with busybox
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed May 16, 2024
1 parent f5a7195 commit 2d91995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
VERSION := $(shell if ! git describe --tags 2>/dev/null; then \
grep -Po '(?<=^VERSION=)v.*$$' $$PWD/RELEASE.txt; \
grep '^VERSION=' $$PWD/RELEASE.txt|cut -d'=' -f2-; \
fi; \
)

GIT_COMMIT := $(shell if ! git rev-list -1 HEAD 2>/dev/null; then \
grep -Po '(?<=^GIT_COMMIT=)\w*$$' $$PWD/RELEASE.txt; \
grep '^GIT_COMMIT=' $$PWD/RELEASE.txt|cut -d'=' -f2-; \
fi; \
)

Expand Down

0 comments on commit 2d91995

Please sign in to comment.