Changes

From SME Server
Jump to navigationJump to search
Line 88: Line 88:  
in a script you can use this from your spec file
 
in a script you can use this from your spec file
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 +
versionincr=$(increment_version $version 2)
 +
 
or also
 
or also
 
         # Informations needed from the spec file
 
         # Informations needed from the spec file
 
         version=$(rpm -q --qf "%{version}\n" --specfile $name.spec | head -1)
 
         version=$(rpm -q --qf "%{version}\n" --specfile $name.spec | head -1)
 +
        versionincr=$(increment_version $version 2)
    
===find and bump release number===
 
===find and bump release number===

Navigation menu