]>
git.saurik.com Git - cydia.git/blob - version.sh
3 if [[ $# -eq 0 ]]; then
9 version
=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\
([^
-]*\
)$@
+\
1.\
2@
;s@^v@@
;s@
%@~@g
')
11 if grep '#define ForRelease 0' MobileCydia.mm &>/dev/null; then
12 version
=${version}~srk
15 define
="#define CYDIA_VERSION \"${version}\""
16 before
=$(cat Version.h 2>/dev/null)
18 if [[ ${before} != ${define} ]]; then
19 echo "${define}" >Version.h