diff options
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/mkversion.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh index 695fc7dd9cd..a55aafcd0c2 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<<CEOF +#ifdef SAMBA_VERSION_VENDOR_FUNCTION +# define SAMBA_VERSION_STRING SAMBA_VERSION_VENDOR_FUNCTION +#else /* SAMBA_VERSION_VENDOR_FUNCTION */ +# ifdef SAMBA_VERSION_VENDOR_SUFFIX +# ifdef SAMBA_VERSION_VENDOR_PATCH +# define SAMBA_VERSION_STRING SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX "-" SAMBA_VERSION_VENDOR_PATCH +# else /* SAMBA_VERSION_VENDOR_PATCH */ +# define SAMBA_VERSION_STRING SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX +# endif /* SAMBA_VERSION_VENDOR_SUFFIX */ +# else /* SAMBA_VERSION_VENDOR_FUNCTION */ +# define SAMBA_VERSION_STRING SAMBA_VERSION_OFFICIAL_STRING +# endif +#endif +CEOF echo "$0: '$OUTPUT_FILE' created for Samba(\"${SAMBA_VERSION_STRING}\")" |