]> git.saurik.com Git - cydia.git/blame - version.sh
Standardize [super reloadData] placement.
[cydia.git] / version.sh
CommitLineData
3adcfba7 1#!/bin/bash
75896941
JF
2
3if [[ $# -eq 0 ]]; then
4 flags=(--dirty="+")
5else
6 flags=("$@")
7fi
8
6348721d
JF
9version=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')
10
11if grep '#define ForRelease 0' MobileCydia.mm &>/dev/null; then
12 version=${version}~srk
13fi
14
15echo "${version}"