]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts: improve the "get latest curl release tag" logic
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Aug 2020 12:25:24 +0000 (14:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Aug 2020 12:25:24 +0000 (14:25 +0200)
... by insiting on it matching "^curl-".

scripts/contributors.sh
scripts/contrithanks.sh
scripts/delta

index 6a6d344841588f53da320b762a87746afc0c2e66..e9b4269689b0a1b0062af670de2b5999bb5fa7a2 100755 (executable)
@@ -34,7 +34,7 @@ if test "$start" = "-h"; then
     exit
 fi
 if test -z "$start"; then
-    start=`git tag --sort=taggerdate | tail -1`;
+    start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
     echo "Since $start:"
 fi
 
index 641259216c399c66dac5d505a997606d51d3718e..0d16a3b90d5626605472d94db32c3dbb2aed1e43 100755 (executable)
@@ -33,7 +33,7 @@ if test "$start" = "-h"; then
   exit
 fi
 if test -z "$start"; then
-  start=`git tag --sort=taggerdate | tail -1`;
+  start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
 fi
 
 
index 4b8a089150f1a3ff56a2182649dde760b897592b..f3781212b81563119bce57ddeddd747fca4f411c 100755 (executable)
@@ -35,7 +35,7 @@ if($start eq "-h") {
     exit;
 }
 elsif($start eq "") {
-    $start = `git tag --sort=taggerdate | tail -1`;
+    $start = `git tag --sort=taggerdate | grep "^curl-" | tail -1`;
     chomp $start;
 }