autoconf
[Top][All Lists]
Advanced

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

Condition evaluation removed


From: Giles Anderson
Subject: Condition evaluation removed
Date: Thu, 11 Sep 2008 16:45:38 +0100

Is there a way to populate the file output from my '.in' file with only the
result of a condition evaluation not the condition itself?

So my dev.ini.in file looks like:

============
export address@hidden@

if [ $(hostname|cut -d. -f1) = "$(echo ${SCHED_HOST} |cut -d. -f1)" ]
then
   export ORAENV_ASK=NO
   export ORACLE_SID=SID1
   source oraenv
fi
============

And I would like the resulting dev.ini to look like this if the above is
true:

export ORAENV_ASK=NO
export ORACLE_SID=SID1
source oraenv


At the moment it writes the whole if;then;fi statement

Is this where I need to use m4_if perhaps?

Thanks
Giles


reply via email to

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