SPUG: modify the include files depending up on instructions in it

Sachin Chaturvedi sachin_chat at coolgoose.com
Wed Mar 16 23:28:12 PST 2005

i am having a file in all directories names as include.cfg
inside this file i am havinf a number of include statements like
#include "../comm.cfg"
#include "../ext.frg"
#include "../mem.cmd"
i have changed my script, which uses this file in such a way that i need to modify my file so that now it looks like this

#ifdef SYM
#include "$INCLUDE_DIR/ext.frg"
#include "../include/ext.frg"
#ifdef SYM
#include "$INCLUDE_DIR/mem.cmd"
#include "../include/mem.cmd"
this code is to be added for each include statements in the file. can any one help me with this how can i do. i am not a expert 
of perl, just learning things. 

More information about the spug-list mailing list