Changes

From SME Server
Jump to navigationJump to search
Line 87: Line 87:  
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')
 +
 +
===find and bump release number===
 +
from your spec file
 +
 +
release=$(grep -sri 'define release' *.spec | sed 's/%define release //gI')
 +
#bump the release
 +
release=$((release + 1))

Navigation menu