Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20161030_catalina_patch/update_gitrevision.sh @ 164:9fa11135915a
This Mac compatibility fix appears to work, resolving SourceForge issue #273 Port Audio Fail on MacOS Catalina (10.15) - merging back
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Thu, 31 Oct 2019 13:20:41 +0000 |
parents | d43aab368df9 |
children |
comparison
equal
deleted
inserted
replaced
161:4797bbf470e7 | 164:9fa11135915a |
---|---|
1 #!/bin/bash | |
2 # | |
3 # Write the Git commit SHA to an include file. | |
4 # This should be run before compiling code on Linux or Macintosh. | |
5 # | |
6 revision_filename=src/common/pa_gitrevision.h | |
7 | |
8 # Run git first to make sure it is installed before corrupting the | |
9 # include file. | |
10 git rev-parse HEAD | |
11 | |
12 # Update the include file with the current Git revision. | |
13 echo -n "#define PA_GIT_REVISION " > ${revision_filename} | |
14 git rev-parse HEAD >> ${revision_filename} | |
15 | |
16 echo ${revision_filename} now contains | |
17 cat ${revision_filename} |