summaryrefslogtreecommitdiffhomepage
path: root/build/mkrevision.sh
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2024-03-26 10:44:33 +0100
committerPaul Spooren <mail@aparcar.org>2024-04-07 13:17:01 +0200
commit110bb468319140110ae297c6f0f292781d9bdf7e (patch)
treeb03e3fdb7a33ad00f240ea39bdf035ca622970b7 /build/mkrevision.sh
parent7fa789a13a4b834b86c32eff108819aa336446e1 (diff)
luci.mk: more APK version compatibility changes
The initial commit did not take care of corner cases which could happen if building under build conditions other than using Git. There are three cases for the `findrev` function: - git -> 24.079.58964~7943616 (remove prefixed `git-`) APK can't handle `git-` as prefix, it could be `0_git<integer>` but this seems rather confusing. - date -> 0.240326.34906 ( add leading 0) Add a leading zero so the version is always lower compared to using Git. This makes it easier to distinguish from a Git based version. - unknown -> 0 (instead of `unknown`) APK can't handle `unknown` so set it to a simple zero instead. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'build/mkrevision.sh')
0 files changed, 0 insertions, 0 deletions