bug-bash
[Top][All Lists]
Advanced

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

Re: Calling Bash with /S


From: sweinberger
Subject: Re: Calling Bash with /S
Date: Thu, 23 Jun 2011 08:50:59 -0700 (PDT)

Hi All,

Success!

The solution is to move the if-statement inside the bash command string.

"$(OBJ)/%.o" :| "$(SRC)/%.c" $(SRCDIRS:+"/%.c")
        @+bash -c 'if [ `expr "$(NOOPTSRCS)" : '.*\b$(<:f)\b'` == 0 ]; then echo
---- Compiling: $(<:f); $(CC) ... "$<"; fi'
        @+bash -c 'if [ `expr "$(NOOPTSRCS)" : '.*\b$(<:f)\b'` != 0 ]; then echo
---- Compiling -O0: $(<:f); $(CC)  ... "$<"; fi'

Cheers,

Sarah
-- 
View this message in context: 
http://old.nabble.com/Calling-Bash-with--S-tp31904926p31911112.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]