]> git.saurik.com Git - backport.git/blob - manifest.sh
Give the correct Android bug #9950697 to bug "B".
[backport.git] / manifest.sh
1 #!/bin/bash
2
3 set -e
4
5 if [[ $# -eq 0 ]]; then
6 flags=(--dirty="+")
7 else
8 flags=("$@")
9 fi
10
11 monotonic=$(git log -1 --pretty=format:%ct)
12 version=$(git describe --tags --match="v*" "${flags[@]}" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@;s@%@~@g')
13
14 exec sed -e "
15 s/\${monotonic}/${monotonic}/g;
16 s/\${version}/${version}/g;
17 " AndroidManifest.xml.in >AndroidManifest.xml