2013-03-15 15:47 UTC+0100 Viktor Szakats (harbour syenar.net)

* src/pp/hbpp.c
    * fall-back to revision 0 if there is no numeric
      revision information in ChangeLog header (for Git)
      Revision is useful, so maybe we should go with one
      formed from date/time: YYMMDDhhmm -> '130315.1547'
      this is quite universal and has some advantages over
      sequential nr.
This commit is contained in:
vszakats
2013-03-15 15:49:50 +01:00
parent 5996e280b5
commit ebb41c7b92
2 changed files with 12 additions and 13 deletions

View File

@@ -10,6 +10,15 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-03-15 15:47 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/pp/hbpp.c
* fall-back to revision 0 if there is no numeric
revision information in ChangeLog header (for Git)
Revision is useful, so maybe we should go with one
formed from date/time: YYMMDDhhmm -> '130315.1547'
this is quite universal and has some advantages over
sequential nr.
2013-03-15 15:17 UTC+0100 Viktor Szakats (harbour syenar.net)
* doc/howtorep.txt
- deleted section dealing with svn IDs and svn props.

View File

@@ -355,8 +355,7 @@ static int hb_pp_generateVerInfo( char * szVerFile, int iSVNID, char * szChangeL
" * and is covered by the same license as Harbour PP\n"
" */\n\n" );
if( iSVNID )
fprintf( fout, "\n#define HB_VER_REVID %d\n", iSVNID );
fprintf( fout, "\n#define HB_VER_REVID %d\n", iSVNID );
if( szChangeLogID )
{
@@ -611,19 +610,10 @@ static int hb_pp_parseChangelog( PHB_PP_STATE pState, const char * pszFileName,
}
*piSVNID = szFrom ? ( int ) hb_strValInt( szFrom, &iLen ) : 0;
if( *piSVNID )
{
hb_pp_addDefine( pState, "HB_VER_REVID", szFrom );
hb_pp_addDefine( pState, "HB_VER_REVID", szFrom ? szFrom : "0" );
#ifdef HB_LEGACY_LEVEL4
hb_pp_addDefine( pState, "HB_VER_SVNID", szFrom );
hb_pp_addDefine( pState, "HB_VER_SVNID", szFrom ? szFrom : "0" );
#endif
}
else
{
if( iQuiet < 2 )
fprintf( stderr, "Unrecognized Id entry in the %s file.\n", pszFileName );
iResult = 1;
}
}
}