From 41ebc6fe73fc2a2ad845c2ad0109222612edf1a3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 12 Sep 2008 12:38:54 +0200 Subject: Reorder defines for version for consistency with Samba 4. (This used to be commit fe36d83508a6b1a8de5ad58ec1d0c80cda7b4a21) --- source3/lib/version.c | 13 +------------ source3/script/mkversion.sh | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 13 deletions(-) (limited to 'source3') diff --git a/source3/lib/version.c b/source3/lib/version.c index 3982646f56..55fb53c5db 100644 --- a/source3/lib/version.c +++ b/source3/lib/version.c @@ -23,16 +23,5 @@ const char *samba_version_string(void) { -#ifdef SAMBA_VERSION_VENDOR_FUNCTION - return SAMBA_VERSION_VENDOR_FUNCTION; -#else /* SAMBA_VERSION_VENDOR_FUNCTION */ - #ifdef SAMBA_VERSION_VENDOR_SUFFIX - #ifdef SAMBA_VERSION_VENDOR_PATCH - return SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX \ - "-" SAMBA_VERSION_VENDOR_PATCH; - #endif /* SAMBA_VERSION_VENDOR_PATCH */ - return SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX; - #endif /* SAMBA_VERSION_VENDOR_SUFFIX */ -#endif /* SAMBA_VERSION_VENDOR_FUNCTION */ - return SAMBA_VERSION_OFFICIAL_STRING; + return SAMBA_VERSION_STRING; } diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh index 695fc7dd9c..a55aafcd0c 100755 --- a/source3/script/mkversion.sh +++ b/source3/script/mkversion.sh @@ -124,7 +124,21 @@ if test -n "${SAMBA_VERSION_RELEASE_NICKNAME}";then SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING} (${SAMBA_VERSION_RELEASE_NICKNAME})" fi -echo "#define SAMBA_VERSION_STRING samba_version_string()" >> $OUTPUT_FILE +cat >>$OUTPUT_FILE<