From 5b2bb86e8ada837732f06bb4a77779cdbca73496 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 3 Jun 2018 20:05:39 +0200 Subject: osmocom-latest-packages: Also accept "v" in front of version tags Some projects (notably rtl-sdr) use "v" in front of their version tags in the git history. Let's make sure we also recognize those. Change-Id: I20f9896cc7844a6ddec7ba63bc9a77f548082e2a --- scripts/osmocom-latest-packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/osmocom-latest-packages.sh') diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh index e37c2e0..15fbc6c 100755 --- a/scripts/osmocom-latest-packages.sh +++ b/scripts/osmocom-latest-packages.sh @@ -32,7 +32,7 @@ build() { [ -d "$1" ] || git clone "git://git.osmocom.org/$1" cd "$1" git fetch - VER=$(git tag -l --sort=v:refname | grep "^[0-9]*.[0-9]*.[0-9]*$" | tail -n 1) + VER=$(git tag -l --sort=v:refname | grep "^v\?[0-9]*.[0-9]*.[0-9]*$" | tail -n 1) git checkout -f -B "$VER" "refs/tags/$VER" gbp buildpackage -d -S -uc -us "--git-export-dir=$output" "--git-debian-branch=$VER" -- cgit v1.2.3