hi all
i would like to write some code in make script( in gtk make file, linux script).
i am including libgtkembedmoz.so and libxpcom.so to the make file....
there i have to write the condition ... that have to check, whether the mozilla installed or not ....
if it is installed
then do this
Code:
k=" "
k=`rpm -ql mozilla | grep /usr/lib/mozilla- | tail -1 | cut -d/ -f4`
path=`whereis -SBM $(k) | cut -d" " -f2 `
mozlib := $(shell $(path))
here am storing the mozilla-version in mozlib.
else
it have to check mozilla-seamonkey is there or not..
if it is installed
then do this
Code:
k=" "
k=`rpm -ql seamonkey | grep /usr/lib/mozilla-seamonkey | tail -1 | cut -d/ -f4`
path=`whereis -SBM $(k) | cut -d" " -f2 `
mozlib := $(shell $(path))
here am storing the mozilla-seamonkey-version in mozlib.
else
it have to check firefox is there or not
if it is installed
then do this
Code:
k=" "
k=`rpm -ql firefox | grep /usr/lib/firefox | tail -1 | cut -d/ -f4`
path=`whereis -SBM $(k) | cut -d" " -f2 `
mozlib := $(shell $(path))
here am storing the firefox-version in mozlib.
is it possible to write in make file using linux script...
please help me
thank you in advance