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 <mschif...@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 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev