You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
163 B

#!/bin/sh
set -x
set -e
dir="$1"
out="$2"
version=$(git -C "$dir" rev-parse --short=8 HEAD)-soong
echo "#define ANDROID_BUILD_VERSION \"${version}\"" > "$out"