view src/portaudio_20161030/update_gitrevision.sh @ 61:d101c4099725

Remove "other" Vamp SDK repo from sv-dependency-builds
author Chris Cannam
date Mon, 06 Mar 2017 13:29:58 +0000
parents 284acf908dcd
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}