From: Ruediger Oertel Date: Wed, 2 Sep 2009 10:27:26 +0000 (+0000) Subject: changelog2spec: further escape %... statements if at begin of line, X-Git-Tag: obs_2.0~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23803282b9719046e8b1af8c44717e6ef30aefd7;p=platform%2Fupstream%2Fbuild.git changelog2spec: further escape %... statements if at begin of line, %% is not enough for %ifarch for example --- diff --git a/changelog2spec b/changelog2spec index 39a0f0e..9160e75 100755 --- a/changelog2spec +++ b/changelog2spec @@ -215,6 +215,7 @@ while(defined($_)) { @gm = (0, 0, 0, 2, 0, 97, 4) if $gm[5] < 97 || ($gm[5] == 97 && $gm[4] == 0 && $gm[3] <= 1); printf("* %s %s %2d %4d %s\n", $wday[$gm[6]], $mon[$gm[4]], $gm[3], $gm[5] + 1900, $who); $changes =~ s/%/%%/g; + $changes =~ s/^(\s*)%%(\S*)/$1\[%%$2\]/; $changes =~ s/^(\s*)(\#\d*)/$1\[$2\]/mg; $changes =~ s/^\*/ */mg; print $changes;