Feature #1284 ยป 0034-generate_gitrev.sh-Remove-x-prefixing.patch
bootstrap/generate_gitrev.sh | ||
---|---|---|
#!/bin/sh
|
||
# Freeciv - Copyright (C) 2007 - The Freeciv Project
|
||
# Freeciv - Copyright (C) 2007-2025 - The Freeciv Project
|
||
# This script generates fc_gitrev_gen.h from fc_gitrev_gen.h.tmpl.
|
||
# See fc_gitrev_gen.h.tmpl for details.
|
||
... | ... | |
# (REVSTATE will be OFF)
|
||
if command -v git >/dev/null ; then
|
||
REVTMP="$(git rev-parse --short HEAD 2>/dev/null)"
|
||
if test "x$REVTMP" != "x" ; then
|
||
# This is git repository. Check for local modifications
|
||
if test "$REVTMP" != "" ; then
|
||
# This is a git repository. Check for local modifications
|
||
if (cd "$SRCROOT" ; git diff --quiet); then
|
||
REVSTATE=ON
|
||
REV2="$REVTMP"
|