@@ -2836,6 +2836,8 @@ int CPL_STDCALL GDALWriteWorldFile(const char *pszBaseFilename,
2836
2836
* <li> "RELEASE_DATE": Returns GDAL_RELEASE_DATE formatted as a
2837
2837
* string. i.e. "20230312".</li>
2838
2838
* <li> "RELEASE_NAME": Returns the GDAL_RELEASE_NAME. ie. "3.6.3"</li>
2839
+ * <li> "RELEASE_NICKNAME": (>= 3.11) Returns the GDAL_RELEASE_NICKNAME.
2840
+ * i.e. "Trans rights are human rights"</li>
2839
2841
* <li> "--version": Returns one line version message suitable for
2840
2842
* use in response to --version requests. i.e. "GDAL 3.6.3, released
2841
2843
* 2023/03/12"</li>
@@ -2999,12 +3001,14 @@ const char *CPL_STDCALL GDALVersionInfo(const char *pszRequest)
2999
3001
osVersionInfo.Printf (" %d" , GDAL_RELEASE_DATE);
3000
3002
else if (EQUAL (pszRequest, " RELEASE_NAME" ))
3001
3003
osVersionInfo.Printf (GDAL_RELEASE_NAME);
3004
+ else if (EQUAL (pszRequest, " RELEASE_NICKNAME" ))
3005
+ osVersionInfo.Printf (GDAL_RELEASE_NICKNAME);
3002
3006
else // --version
3003
3007
{
3004
- osVersionInfo.Printf (" GDAL %s, released %d/%02d/%02d " ,
3005
- GDAL_RELEASE_NAME, GDAL_RELEASE_DATE / 10000 ,
3006
- ( GDAL_RELEASE_DATE % 10000 ) / 100 ,
3007
- GDAL_RELEASE_DATE % 100 );
3008
+ osVersionInfo.Printf (
3009
+ " GDAL %s \" %s \" , released %d/%02d/%02d " , GDAL_RELEASE_NAME ,
3010
+ GDAL_RELEASE_NICKNAME, GDAL_RELEASE_DATE / 10000 ,
3011
+ (GDAL_RELEASE_DATE % 10000 ) / 100 , GDAL_RELEASE_DATE % 100 );
3008
3012
#if defined(__GNUC__) && !defined(__OPTIMIZE__)
3009
3013
// Cf https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
3010
3014
// also true for CLang
0 commit comments