[LEDE-DEV] [PATCH 2/4] scripts/getver.sh: drop try_hg
Matthias Schiffer
mschiffer at universe-factory.net
Sun Jul 9 17:19:49 PDT 2017
We don't use Mercurial, try_hg didn't understand GET_REV, and its output
didn't have anything to do with the way LEDE counts revisions.
Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
scripts/getver.sh | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/scripts/getver.sh b/scripts/getver.sh
index 1032fa324e..215bb036a5 100755
--- a/scripts/getver.sh
+++ b/scripts/getver.sh
@@ -50,12 +50,5 @@ try_git() {
[ -n "$REV" ]
}
-try_hg() {
- [ -d .hg ] || return 1
- REV="$(hg log -r-1 --template '{desc}' | awk '{print $2}' | sed 's/\].*//')"
- REV="${REV:+r$REV}"
- [ -n "$REV" ]
-}
-
-try_version || try_git || try_hg || REV="unknown"
+try_version || try_git || REV="unknown"
echo "$REV"
--
2.13.2
More information about the Lede-dev
mailing list