1#!/bin/sh 2 3set -x 4set -e 5 6dir="$1" 7out="$2" 8 9version=$(git -C "$dir" rev-parse --short=8 HEAD)-soong 10 11echo "#define ANDROID_BUILD_VERSION \"${version}\"" > "$out" 12