]> git.saurik.com Git - cydia.git/blame - version.sh
Renamed SourceTable to SourceController, makes much more sense now.
[cydia.git] / version.sh
CommitLineData
9b3dc53f 1#!/bin/bash
36eaf7cf
JF
2
3if [[ $# -eq 0 ]]; then
4 flags=(--dirty="+")
5else
6 flags=("$@")
7fi
8
9echo -n "$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')"
88006bae
JF
10grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk'
11echo