LGPL-2.1
1999-2021 The Coq Development Team,; Institut National de Recherche en Informatique et en Automatique (INRIA),; Centre National de la Recherche Scientifique (CNRS),; Microsoft corporation; and contributors
debian/copyright
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
if ! command -v git >/dev/null; then |
| 4 |
>&2 echo "skipping make_git_revision: git not found" |
| 5 |
exit 0 |
| 6 |
fi |
| 7 |
|
| 8 |
if [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1 |
| 9 |
then |
| 10 |
export LANG=C |
| 11 |
GIT_BRANCH=$(git branch -a | sed -ne '/^\* /s/^\* \(.*\)/\1/p') |
| 12 |
GIT_HOST=$(hostname) |
| 13 |
GIT_PATH=$(pwd) |
| 14 |
echo "${GIT_HOST}:${GIT_PATH},${GIT_BRANCH}" |
| 15 |
echo $(git log -1 --pretty='format:%H') |
| 16 |
else |
| 17 |
>&2 echo "skipping make_git_revision: git dir not found" |
| 18 |
exit 0 |
| 19 |
fi |