aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/osmocom-latest-packages.sh
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-03 20:05:39 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-03 20:05:39 +0200
commit5b2bb86e8ada837732f06bb4a77779cdbca73496 (patch)
tree61ee69d4fe1b201f6b7431a64eecd3c4a3b4bf8d /scripts/osmocom-latest-packages.sh
parent534bb718b6669221508f258ae85825aa29252278 (diff)
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
Diffstat (limited to 'scripts/osmocom-latest-packages.sh')
-rwxr-xr-xscripts/osmocom-latest-packages.sh2
1 files changed, 1 insertions, 1 deletions
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"