8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Improve check for FBBUILD_FILENAME_SUFFIX env var

This commit is contained in:
paul_reeves 2013-01-10 15:01:24 +00:00
parent ed8c087fac
commit 6dab6f6f2a

View File

@ -47,7 +47,9 @@ set /A FBBUILD_PACKAGE_NUMBER+=1
::If a suffix is defined (usually for an RC) ensure it is prefixed correctly.
if defined FBBUILD_FILENAME_SUFFIX (
if not %FBBUILD_FILENAME_SUFFIX:~0,1% == _ (set FBBUILD_FILENAME_SUFFIX=_%FBBUILD_FILENAME_SUFFIX%)
if not "%FBBUILD_FILENAME_SUFFIX:~0,1%"=="_" (
(set FBBUILD_FILENAME_SUFFIX=_%FBBUILD_FILENAME_SUFFIX%)
)
)
:: See what we have on the command line