1#!/bin/sh 2# © 2021 Qualcomm Innovation Center, Inc. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5 6status=`git diff HEAD --quiet || echo '-dirty'` 7 8echo '// This file is automatically generated.' 9echo '// Do not manually resolve conflicts! Contact hypervisor.team for assistance.' 10echo "#define HYP_GIT_VERSION `git rev-parse --short HEAD`$status" 11 12if [ -z "$status" ] 13then 14 echo "#define HYP_BUILD_DATE \"`TZ=UTC git show -s --pretty="%cd" --date=local HEAD` UTC\"" 15else 16 echo "#define HYP_BUILD_DATE \"`date -R`\"" 17fi 18