build: remove absolute path to perl and replace with /usr/bin/env perl
[openwrt/staging/chunkeey.git] / scripts / getver.sh
index d5f29864b57b24b2dab693ad88c58da4b4dcc623..9175f411db8345ab420fdb1edcaf0d20f858f12f 100755 (executable)
@@ -40,7 +40,8 @@ try_git() {
                        REV="${UPSTREAM_REV}+$((REV - UPSTREAM_REV))"
                fi
 
-               REV="${REV:+r$REV}"
+               REV="${REV:+r$REV-$(git log -n 1 --format="%h" $UPSTREAM_BASE)}"
+
                ;;
        esac