comparison src/portaudio_20161030_catalina_patch/update_gitrevision.sh @ 162:d43aab368df9

Duplicate for patch testing
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 30 Oct 2019 11:25:10 +0000
parents
children
comparison
equal deleted inserted replaced
161:4797bbf470e7 162:d43aab368df9
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}