Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 2nd August 2007, 10:18 AM
munna_dude Offline
Registered User
 
Join Date: Dec 2006
Location: hyd -INDIA
Posts: 277
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
Reply With Quote
 

Tags
linux, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Bash Script chris_y2k_r1 Using Fedora 6 1st February 2007 03:49 AM
Script - Converting a dos bach script to linux jond Using Fedora 12 2nd May 2005 04:45 PM


Current GMT-time: 13:50 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat