2 dnl Samba3 build environment - Samba version variables
4 dnl Copyright (C) Michael Adam 2008
6 dnl Released under the GNU General Public License
7 dnl http://www.gnu.org/licenses/
11 SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep '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}"