summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-11-12 18:06:20 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-11-12 17:42:14 +0000
commited22f13e7ead1b1ed2fd9dde51a479b9cfaf67aa (patch)
treee8b53e68924e34450acec4ce4fdff818774b404d /source3
parent9ebb55d1cb1280a5b8a4d82ec35568c034898e41 (diff)
downloadsamba-ed22f13e7ead1b1ed2fd9dde51a479b9cfaf67aa.tar.gz
samba-ed22f13e7ead1b1ed2fd9dde51a479b9cfaf67aa.tar.bz2
samba-ed22f13e7ead1b1ed2fd9dde51a479b9cfaf67aa.zip
s3: Rename GIT_COMMIT_{TIME,DATE} to COMMIT_{TIME,DATE}.
This avoids some special casing in the waf code.
Diffstat (limited to 'source3')
-rw-r--r--source3/m4/samba_version.m414
-rwxr-xr-xsource3/script/mkversion.sh8
-rw-r--r--source3/smbd/trans2.c4
3 files changed, 13 insertions, 13 deletions
diff --git a/source3/m4/samba_version.m4 b/source3/m4/samba_version.m4
index 4d749e9bb9..dbea1f3b3a 100644
--- a/source3/m4/samba_version.m4
+++ b/source3/m4/samba_version.m4
@@ -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
diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh
index ce9d2af4c0..5ad197dd56 100755
--- a/source3/script/mkversion.sh
+++ b/source3/script/mkversion.sh
@@ -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
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 7ca5f5057a..30794e009e 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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,