hi
i got a strange problem..
i have to write make file script for this am giving here my ideas in step wise.
it has to be run in make file...(gtk c, makefile).
1.mozilla -V | sed -e 's/\([^,]*\),.*/\L\1/' -e 's/ /-/'
this is to know current mozilla version.
and the output has to store in a variable or string
(for example "i")after this immediately...run the second step.
2.whereis i
this is to know where the current mozilla version is.. in our machine...( here it will tell EX: /usr/lib/mozilla-1.7.13)
it has to be stored in a variable or string.. let us say "j"
3.-Lj -lxpcom
instead of giving like this
"-L/usr/lib/mozilla-1.7.13 -lxpcom"
am giving "-Lj -lxpcom" dynamically..
here am including the libxpcom.so to the exe. in the make file. j=path of the current mozilla directiory(/usr/lib/mozilla-1.7.13)
so that each and every time when the exe running.. it will check the current version and adds library path..
this all how to write in make file(using linux script)
please help me
thank you in advance
|