s4-scripting: samba-tool: Fix domain info usage message
[Samba/vl.git] / source3 / m4 / samba_version.m4
blob8ee0232df811d35d5865afd522cb4e2ca627dd30
1 dnl
2 dnl Samba3 build environment - Samba version variables
3 dnl
4 dnl Copyright (C) Michael Adam 2008
5 dnl
6 dnl Released under the GNU General Public License
7 dnl http://www.gnu.org/licenses/
8 dnl
9 dnl
11 SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep '#define SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
12 echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
14 SAMBA_VERSION_GIT_COMMIT_FULLREV=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_FULLREV' | cut -d ' ' -f3- | cut -d '"' -f2`
15 if test -n "${SAMBA_VERSION_GIT_COMMIT_FULLREV}";then
16         echo "BUILD COMMIT REVISION: ${SAMBA_VERSION_GIT_COMMIT_FULLREV}"
18 SAMBA_VERSION_COMMIT_DATE=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_COMMIT_DATE' | cut -d ' ' -f3-`
19 if test -n "${SAMBA_VERSION_COMMIT_DATE}";then
20         echo "BUILD COMMIT DATE: ${SAMBA_VERSION_COMMIT_DATE}"
22 SAMBA_VERSION_COMMIT_TIME=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_COMMIT_TIME' | cut -d ' ' -f3-`
23 if test -n "${SAMBA_VERSION_COMMIT_TIME}";then
24         echo "BUILD COMMIT TIME: ${SAMBA_VERSION_COMMIT_TIME}"
26         # just to keep the build-farm gui happy for now...
27         echo "BUILD REVISION: ${SAMBA_VERSION_COMMIT_TIME}"