Re: sh embedding

2012-07-23 Thread icegood
Philip Guenther-2 wrote: > > The '==' operator is a bash extension... > Yes! Indeed! I checked. The problem was in '=='. I simply use 'c' much more than bash, that why i used it. Since main question is closed we can now flud about others :) So, about locks. You understand idea of locks in rig

sh embedding

2012-07-23 Thread icegood
from newer version of gnu make (3.81 under kubuntu 12.04) .PHONEY: all all: if [ \( "$$(ls *.lock 2>/dev/null)" == "" \) ]; then \ touch $@.lock; \ if [ \( ! -e $@ \) -o \( ../$(tag_fn) -nt $@ \) ]; then \ echo $@ done; \ else \ touch $@; \ fi; \ rm -f $@.l