Mercurial > hg > sv-dependency-builds
view 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 |
line wrap: on
line source
#!/bin/bash # # Write the Git commit SHA to an include file. # This should be run before compiling code on Linux or Macintosh. # revision_filename=src/common/pa_gitrevision.h # Run git first to make sure it is installed before corrupting the # include file. git rev-parse HEAD # Update the include file with the current Git revision. echo -n "#define PA_GIT_REVISION " > ${revision_filename} git rev-parse HEAD >> ${revision_filename} echo ${revision_filename} now contains cat ${revision_filename}