Mercurial > hg > sv-dependency-builds
annotate src/portaudio_20161030_catalina_patch/update_gitrevision.sh @ 169:223a55898ab9 tip default
Add null config files
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 02 Mar 2020 14:03:47 +0000 |
parents | d43aab368df9 |
children |
rev | line source |
---|---|
cannam@162 | 1 #!/bin/bash |
cannam@162 | 2 # |
cannam@162 | 3 # Write the Git commit SHA to an include file. |
cannam@162 | 4 # This should be run before compiling code on Linux or Macintosh. |
cannam@162 | 5 # |
cannam@162 | 6 revision_filename=src/common/pa_gitrevision.h |
cannam@162 | 7 |
cannam@162 | 8 # Run git first to make sure it is installed before corrupting the |
cannam@162 | 9 # include file. |
cannam@162 | 10 git rev-parse HEAD |
cannam@162 | 11 |
cannam@162 | 12 # Update the include file with the current Git revision. |
cannam@162 | 13 echo -n "#define PA_GIT_REVISION " > ${revision_filename} |
cannam@162 | 14 git rev-parse HEAD >> ${revision_filename} |
cannam@162 | 15 |
cannam@162 | 16 echo ${revision_filename} now contains |
cannam@162 | 17 cat ${revision_filename} |