1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

BUILD_ID: Use cg-object-id when there is no cg-commit-id

This commit is contained in:
Witold Filipczyk 2007-03-23 19:01:21 +01:00 committed by Witold Filipczyk
parent 00037979d2
commit 1655de5699
3 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ AWK = @AWK@
CATALOGS = @CATALOGS@
CC = @CC@
CG_COMMIT_ID = @CG_COMMIT_ID@
CG_OBJECT_ID = @CG_OBJECT_ID@
CONFDIR = @CONFDIR@
GLIBC21 = @GLIBC21@
GMOFILES = @GMOFILES@

View File

@ -53,6 +53,7 @@ AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PATH_PROGS(CG_COMMIT_ID, "cg-commit-id")
AC_PATH_PROGS(CG_OBJECT_ID, "cg-object-id")
AC_PATH_PROGS(SPARSE, "sparse")
CONFIG_ASCIIDOC="no"

View File

@ -30,6 +30,10 @@ SUBDIRS = \
# Get the GIT HEAD ID if possible
ifdef CG_COMMIT_ID
BUILD_ID=$(shell GIT_DIR=$(top_srcdir)/.git $(CG_COMMIT_ID) 2> /dev/null)
else
ifdef CG_OBJECT_ID
BUILD_ID=$(shell GIT_DIR=$(top_srcdir)/.git $(CG_OBJECT_ID) -c 2> /dev/null)
endif
endif
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""