Condition evaluation removed

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

 



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 SCHED_HOST=@SCHED_HOST_NAME@

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
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux