create-mkspec.sh: Fix evaluation of sections [pkg.xxx.post] and friends

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-12-19 13:22:40 +00:00
commit ccde4a078c

View file

@ -14,6 +14,11 @@ cfg_value()
ini_value "$inifile" $@ ini_value "$inifile" $@
} }
cfg_escape()
{
sed 's/\$/\\$/g'
}
_cat() _cat()
{ {
sed 's/^ *|//' sed 's/^ *|//'
@ -30,7 +35,7 @@ _cat << EOT
|echo "License: $LICENSE" |echo "License: $LICENSE"
|echo "Group: System/Libraries" |echo "Group: System/Libraries"
|[ -n "\$SOURCE" ] && echo "Source: \$SOURCE" |[ -n "\$SOURCE" ] && echo "Source: \$SOURCE"
|echo "Vendor: Jannet IT Services" |echo "Vendor: janware GmbH"
|echo "URL: http://janware.com" |echo "URL: http://janware.com"
|echo "BuildRoot: /var/tmp/%{name}-buildroot" |echo "BuildRoot: /var/tmp/%{name}-buildroot"
|echo "" |echo ""