Debian Codegraph @

dev/tools/make_git_revision.sh

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`.
2
3 if ! command -v git >/dev/nullscip-shell filesystem . . `/dev/null`.; then
4 >&2 echoscip-shell system . . echo. "skipping make_git_revision: git not found"
5 exit 0
6 fi
7
8 if [scip-shell system . . `[`. -d .git ] || gitscip-shell system . . git. rev-parse --git-dir > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
9 then
10 export LANG=C
11 GIT_BRANCH=$(gitscip-shell system . . git. branch -a | sedscip-shell system . . sed. -ne '/^\* /s/^\* \(.*\)/\1/pscip-shell filesystem . . `/^\* /s/^\* \(.*\)/\1/p`.')
12 GIT_HOST=$(hostnamescip-shell system . . hostname.)
13 GIT_PATH=$(pwdscip-shell system . . pwd.)
14 echoscip-shell system . . echo. "${GIT_HOST}:${GIT_PATH},${GIT_BRANCH}"
15 echoscip-shell system . . echo. $(gitscip-shell system . . git. log -1 --pretty='format:%H')
16 else
17 >&2 echoscip-shell system . . echo. "skipping make_git_revision: git dir not found"
18 exit 0
19 fi