pck-update: ignore comments in test n.5

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-01-17 22:05:55 +01:00
parent 20eefda133
commit fcb14501ba

View File

@ -695,6 +695,8 @@ missing at least one \`%defattr' directive"
local token tokens local token tokens
sed -n '/%build/,/%install/p' $specfile | \ sed -n '/%build/,/%install/p' $specfile | \
while read -a tokens; do while read -a tokens; do
# ignore comments
[[ "${tokens[0]}" =~ ^\# ]] && continue
for token in ${tokens[*]}; do for token in ${tokens[*]}; do
case "$token" in case "$token" in
configure|./configure) configure|./configure)