]>
Commit | Line | Data |
---|---|---|
3adcfba7 | 1 | #!/bin/bash |
75896941 JF |
2 | |
3 | if [[ $# -eq 0 ]]; then | |
4 | flags=(--dirty="+") | |
5 | else | |
6 | flags=("$@") | |
7 | fi | |
8 | ||
9 | echo -n "$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@')" | |
991d7f6c JF |
10 | grep '#define ForRelease 0' MobileCydia.mm &>/dev/null && echo -n '~srk' |
11 | echo |