Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    linux script

    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
    "Relationships are built on trust and communication"

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Posts
    59
    Why do want to use Makefile when script serves your purpose.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...