To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.
root / src / portaudio_20161030_catalina_patch / update_gitrevision.sh @ 162:d43aab368df9
History | View | Annotate | Download (502 Bytes)
| 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}
|