tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sanity-check-depends



 >> +_SANITY_CHECK_DEPENDS_CMD=${AWK} '        \
> I didn't look at the details, but maybe it's cheaper to do something like
>       if !empty(${DEPENDS:C/<pattern matching valid dependencies>//})
> ?

I use loop expansion because I'm not sure DEPENDS and others don't
change after inclusion of depend.mk.

 >> +   @{ ${DEPENDS:@temp@echo '${temp}';@} \
> 1. The man pages states that the convention is to have the loop variable 
> start and end with a period.

Fixed.

> 2. What am I overlooking that
>       printf "%s\n" ${DEPENDS} ${BUILD_DEPENDS} ${TOOL_DEPENDS} ${CONFLICTS}
> doesn't work?

No. Because these variables are lists, contains `<', `>' and other
symbols that need per-word(!) shquote(3)ing, so I cannot just use :Q
modifier.

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index