Skip to content

Commit

Permalink
Attempt to fix <CI_CNT> and <B_CNT> handling in Release
Browse files Browse the repository at this point in the history
in a minimal invasive way.
  • Loading branch information
frispete committed Oct 6, 2015
1 parent 3c3fa65 commit ccf4936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 20-files-present-and-referenced
Expand Up @@ -118,7 +118,9 @@ for i in $DIR_TO_CHECK/*.spec ; do
/^\([Ss]ource\|[Pp]atch\)[0-9]*:[ ]*/{
s/^\(\([Ss]ource\|[Pp]atch\)[0-9]*:[ ]*\)\(.*\)/##seen \1\3\n%{echo:\3 }/
}
s/^Release:.*<RELEASE.*>/Release: 0/' $i >$TMPDIR/tmp.spec
s/^Release:.*<RELEASE.*>/Release: 0/
s/^\(Release:.*\)<CI_CNT>\(.*\)/\1_\2/
s/^\(Release:.*\)<B_CNT>\(.*\)/\1_\2/' $i >$TMPDIR/tmp.spec
grep -a ^Icon: $i|sed -n 's/^Icon:[ ]*/%{echo:/
/^%{echo:/s/$/ }/p' >>$TMPDIR/tmp.spec
grep -a -q ^Release $i || {
Expand Down

0 comments on commit ccf4936

Please sign in to comment.