spec-create: fix expansion of lines containing @configure@

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-01-22 01:05:56 +01:00
parent f7ba867c7b
commit 90f3996a3d
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,11 @@ Changes in version 1.9.1
* templates/library - Davide Madrisan: * templates/library - Davide Madrisan:
Update template. Update template.
+ bugfix
* pck-update - Davide Madrisan:
Fix expansion of templates containing '@configure@' or a line starting by
'@configure@'.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 1.9.0 - Silvan Birthday Release Changes in version 1.9.0 - Silvan Birthday Release

View File

@ -383,7 +383,8 @@ $spec_type ("$"line""#$template_linenum): "$"@fi without @if statement"
$FUNCNAME: @fi:$currvar lev:$if_level val:${if_value[$if_level]})" $FUNCNAME: @fi:$currvar lev:$if_level val:${if_value[$if_level]})"
continue continue
;; ;;
@configure@) @configure@*)
[ "${if_value[1]}" = '1' -a ${if_value[2]} = '1' ] || continue
[ "$spec_cmd_configure" ] && echo "$line" | \ [ "$spec_cmd_configure" ] && echo "$line" | \
sed "s,@configure@,$spec_cmd_configure," sed "s,@configure@,$spec_cmd_configure,"
;; ;;