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:
parent
00037979d2
commit
1655de5699
@ -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@
|
||||
|
@ -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"
|
||||
|
@ -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)\""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user