Skip to content
Snippets Groups Projects
  • Paul Spooren's avatar
    513f7171
    rules: fix COMMITCOUNT logic · 513f7171
    Paul Spooren authored
    
    The newly added $(COMMITCOUNT) variable was wrongly increased by plus
    one. The addition should have been only added to $(AUTORELEASE) as
    OpenWrt traditionally starts counting at one rather than zero.
    
    $(AUTORELEASE) counts the commits since the last bump, which is zero on
    the version bump commit itself.
    
    This commit increases $(AUTORELEASE) by one while leaving $(COMMITCOUNT)
    as is.
    
    The base-files package is the only package using $(COMMITCOUNT) so far
    and requires a pseudo commit to keep the PKG_RELEASE correct. A non
    functional change (Copyright bump) is done in the next commit.
    
    Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
    513f7171
    History
    rules: fix COMMITCOUNT logic
    Paul Spooren authored
    
    The newly added $(COMMITCOUNT) variable was wrongly increased by plus
    one. The addition should have been only added to $(AUTORELEASE) as
    OpenWrt traditionally starts counting at one rather than zero.
    
    $(AUTORELEASE) counts the commits since the last bump, which is zero on
    the version bump commit itself.
    
    This commit increases $(AUTORELEASE) by one while leaving $(COMMITCOUNT)
    as is.
    
    The base-files package is the only package using $(COMMITCOUNT) so far
    and requires a pseudo commit to keep the PKG_RELEASE correct. A non
    functional change (Copyright bump) is done in the next commit.
    
    Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
rules.mk 14.26 KiB