summaryrefslogtreecommitdiff
path: root/version.sh
blob: 7fcf15156c3f34acd5c9f9e767aea3e91c0ef177 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [[ $# -eq 0 ]]; then
    flags=(--dirty="+")
else
    flags=("$@")
fi

echo -n "$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')"
grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk'
echo