]> git.saurik.com Git - cydia.git/blobdiff - version.sh
Replace 99.9% of metadata.plist with metadata.cb0.
[cydia.git] / version.sh
index 2508390b7f5bb082a64dbdc18b82e1add5dadcb3..1cbbfbf8d6f82f8259e5e758f89d3874d31ef38b 100755 (executable)
@@ -1,5 +1,2 @@
 #!/bin/bash
-ver=$(git describe --tags --dirty="+")
-ver=${ver#v}
-ver=${ver//-/.}
-echo "${ver}"
+git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@'