annotate src/portaudio_20161030_catalina_patch/update_gitrevision.sh @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 4edcd14160a5
children
rev   line source
Chris@55 1 #!/bin/bash
Chris@55 2 #
Chris@55 3 # Write the Git commit SHA to an include file.
Chris@55 4 # This should be run before compiling code on Linux or Macintosh.
Chris@55 5 #
Chris@55 6 revision_filename=src/common/pa_gitrevision.h
Chris@55 7
Chris@55 8 # Run git first to make sure it is installed before corrupting the
Chris@55 9 # include file.
Chris@55 10 git rev-parse HEAD
Chris@55 11
Chris@55 12 # Update the include file with the current Git revision.
Chris@55 13 echo -n "#define PA_GIT_REVISION " > ${revision_filename}
Chris@55 14 git rev-parse HEAD >> ${revision_filename}
Chris@55 15
Chris@55 16 echo ${revision_filename} now contains
Chris@55 17 cat ${revision_filename}