mirror of
https://github.com/samba-team/samba.git
synced 2025-05-27 17:05:51 +03:00
s3: Rename GIT_COMMIT_{TIME,DATE} to COMMIT_{TIME,DATE}.
This avoids some special casing in the waf code.
This commit is contained in:
parent
9ebb55d1cb
commit
ed22f13e7e
@ -15,15 +15,15 @@ SAMBA_VERSION_GIT_COMMIT_FULLREV=`cat $srcdir/include/version.h | grep 'SAMBA_VE
|
||||
if test -n "${SAMBA_VERSION_GIT_COMMIT_FULLREV}";then
|
||||
echo "BUILD COMMIT REVISION: ${SAMBA_VERSION_GIT_COMMIT_FULLREV}"
|
||||
fi
|
||||
SAMBA_VERSION_GIT_COMMIT_DATE=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_DATE' | cut -d ' ' -f3-`
|
||||
if test -n "${SAMBA_VERSION_GIT_COMMIT_DATE}";then
|
||||
echo "BUILD COMMIT DATE: ${SAMBA_VERSION_GIT_COMMIT_DATE}"
|
||||
SAMBA_VERSION_COMMIT_DATE=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_COMMIT_DATE' | cut -d ' ' -f3-`
|
||||
if test -n "${SAMBA_VERSION_COMMIT_DATE}";then
|
||||
echo "BUILD COMMIT DATE: ${SAMBA_VERSION_COMMIT_DATE}"
|
||||
fi
|
||||
SAMBA_VERSION_GIT_COMMIT_TIME=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_TIME' | cut -d ' ' -f3-`
|
||||
if test -n "${SAMBA_VERSION_GIT_COMMIT_TIME}";then
|
||||
echo "BUILD COMMIT TIME: ${SAMBA_VERSION_GIT_COMMIT_TIME}"
|
||||
SAMBA_VERSION_COMMIT_TIME=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_COMMIT_TIME' | cut -d ' ' -f3-`
|
||||
if test -n "${SAMBA_VERSION_COMMIT_TIME}";then
|
||||
echo "BUILD COMMIT TIME: ${SAMBA_VERSION_COMMIT_TIME}"
|
||||
|
||||
# just to keep the build-farm gui happy for now...
|
||||
echo "BUILD REVISION: ${SAMBA_VERSION_GIT_COMMIT_TIME}"
|
||||
echo "BUILD REVISION: ${SAMBA_VERSION_COMMIT_TIME}"
|
||||
fi
|
||||
|
||||
|
@ -76,9 +76,9 @@ if test x"${SAMBA_VERSION_IS_GIT_SNAPSHOT}" = x"yes";then
|
||||
HAVEGIT=no
|
||||
GIT_INFO=`git show --pretty=format:"%h%n%ct%n%H%n%cd" --stat HEAD 2>/dev/null`
|
||||
GIT_COMMIT_ABBREV=`printf "%s" "${GIT_INFO}" | sed -n 1p`
|
||||
GIT_COMMIT_TIME=`printf "%s" "${GIT_INFO}" | sed -n 2p`
|
||||
COMMIT_TIME=`printf "%s" "${GIT_INFO}" | sed -n 2p`
|
||||
GIT_COMMIT_FULLREV=`printf "%s" "${GIT_INFO}" | sed -n 3p`
|
||||
GIT_COMMIT_DATE=`printf "%s" "${GIT_INFO}" | sed -n 4p`
|
||||
COMMIT_DATE=`printf "%s" "${GIT_INFO}" | sed -n 4p`
|
||||
if test -n "${GIT_COMMIT_ABBREV}";then
|
||||
HAVEGIT=yes
|
||||
HAVEVER=yes
|
||||
@ -89,9 +89,9 @@ if test x"${SAMBA_VERSION_IS_GIT_SNAPSHOT}" = x"yes";then
|
||||
SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-GIT-${GIT_COMMIT_ABBREV}"
|
||||
|
||||
echo "#define SAMBA_VERSION_GIT_COMMIT_ABBREV \"${GIT_COMMIT_ABBREV}\"" >> $OUTPUT_FILE
|
||||
echo "#define SAMBA_VERSION_GIT_COMMIT_TIME ${GIT_COMMIT_TIME}" >> $OUTPUT_FILE
|
||||
echo "#define SAMBA_VERSION_COMMIT_TIME ${COMMIT_TIME}" >> $OUTPUT_FILE
|
||||
echo "#define SAMBA_VERSION_GIT_COMMIT_FULLREV \"${GIT_COMMIT_FULLREV}\"" >> $OUTPUT_FILE
|
||||
echo "#define SAMBA_VERSION_GIT_COMMIT_DATE \"${GIT_COMMIT_DATE}\"" >> $OUTPUT_FILE
|
||||
echo "#define SAMBA_VERSION_COMMIT_DATE \"${COMMIT_DATE}\"" >> $OUTPUT_FILE
|
||||
else
|
||||
SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-GIT-UNKNOWN"
|
||||
fi
|
||||
|
@ -2892,8 +2892,8 @@ static void samba_extended_info_version(struct smb_extended_info *extended_info)
|
||||
extended_info->samba_subversion |= (SAMBA_VERSION_VENDOR_PATCH & 0xffff);
|
||||
#endif
|
||||
extended_info->samba_gitcommitdate = 0;
|
||||
#ifdef SAMBA_VERSION_GIT_COMMIT_TIME
|
||||
unix_to_nt_time(&extended_info->samba_gitcommitdate, SAMBA_VERSION_GIT_COMMIT_TIME);
|
||||
#ifdef SAMBA_VERSION_COMMIT_TIME
|
||||
unix_to_nt_time(&extended_info->samba_gitcommitdate, SAMBA_VERSION_COMMIT_TIME);
|
||||
#endif
|
||||
|
||||
memset(extended_info->samba_version_string, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user