From 567f05e571278c4674dbf3c9aba8c69a11921873 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 10 Feb 2012 10:58:30 +1100 Subject: mkversion: Add quotes around various version strings This fixes compilation errors when VENDOR strings are specified. Autobuild-User: Amitay Isaacs Autobuild-Date: Sat Feb 11 09:07:54 CET 2012 on sn-devel-104 --- source3/script/mkversion.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/script') diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh index 0e4a860363..d8ba8af008 100755 --- a/source3/script/mkversion.sh +++ b/source3/script/mkversion.sh @@ -108,10 +108,10 @@ if test -n "${SAMBA_VERSION_VENDOR_FUNCTION}"; then fi if test -n "${SAMBA_VERSION_VENDOR_SUFFIX}";then - echo "#define SAMBA_VERSION_VENDOR_SUFFIX ${SAMBA_VERSION_VENDOR_SUFFIX}" >> $OUTPUT_FILE + echo "#define SAMBA_VERSION_VENDOR_SUFFIX \"${SAMBA_VERSION_VENDOR_SUFFIX}\"" >> $OUTPUT_FILE SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-${SAMBA_VERSION_VENDOR_SUFFIX}" if test -n "${SAMBA_VERSION_VENDOR_PATCH}";then - echo "#define SAMBA_VERSION_VENDOR_PATCH ${SAMBA_VERSION_VENDOR_PATCH}" >> $OUTPUT_FILE + echo "#define SAMBA_VERSION_VENDOR_PATCH \"${SAMBA_VERSION_VENDOR_PATCH}\"" >> $OUTPUT_FILE echo "#define SAMBA_VERSION_VENDOR_PATCH_STRING \"${SAMBA_VERSION_VENDOR_PATCH}\"" >> $OUTPUT_FILE SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING}-${SAMBA_VERSION_VENDOR_PATCH}" fi @@ -121,7 +121,7 @@ fi ## Add a release nickname ## if test -n "${SAMBA_VERSION_RELEASE_NICKNAME}";then - echo "#define SAMBA_VERSION_RELEASE_NICKNAME ${SAMBA_VERSION_RELEASE_NICKNAME}" >> $OUTPUT_FILE + echo "#define SAMBA_VERSION_RELEASE_NICKNAME \"${SAMBA_VERSION_RELEASE_NICKNAME}\"" >> $OUTPUT_FILE SAMBA_VERSION_STRING="${SAMBA_VERSION_STRING} (${SAMBA_VERSION_RELEASE_NICKNAME})" fi -- cgit