comparison src/portaudio_20161030/update_gitrevision.sh @ 140:59a8758c56b1

Add source for PortAudio stable v190600_20161030
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 03 Jan 2017 13:44:07 +0000
parents
children
comparison
equal deleted inserted replaced
139:413e081fcc6f 140:59a8758c56b1
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}