]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - tools/meson-vcs-tag.sh
update TODO
[thirdparty/systemd.git] / tools / meson-vcs-tag.sh
index 4345c2145a38b4bc1edd27d415c452ecedb0114a..c8033d00a172c28c9c4d5671bb4918c5ab3fe505 100755 (executable)
@@ -1,10 +1,16 @@
-#!/bin/sh
+#!/bin/bash
 
 set -eu
 set -o pipefail
 
 dir="$1"
-fallback="$2"
+tag="$2"
+fallback="$3"
+
+if [ -n "$tag" ]; then
+        echo "$tag"
+        exit 0
+fi
 
 # Apparently git describe has a bug where it always considers the work-tree
 # dirty when invoked with --git-dir (even though 'git status' is happy). Work