FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-29-2008, 02:48 PM
Paul
 
Default Packaging mono hack - is there a way to do this?

Hi,

As you all know, packaging mono apps involves a lot of makefile and pc
file patching so that instead of targeting /usr/lib, it targets
$(libdir). While I am actively trying to get Novell to stop being silly
and write their makefiles correctly, progress is slow there.

As a thought, is there a way to do something like this

for i in [alldirectories]/Makefile.{in,am}
[alldirectories]/*.pc.in
; do
sed -i -e 's!$(prefix)/lib!%{_libdir}!' "$i"
done

where [alldirectories] is a recursive call into every directory within
the application.

It would certainly save a shed load of time!

TTFN

Paul
--
Sie können mich aufreizen und wirklich heiß machen!
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 11-29-2008, 03:00 PM
Mamoru Tasaka
 
Default Packaging mono hack - is there a way to do this?

Paul wrote, at 11/30/2008 12:48 AM +9:00:

Hi,

As a thought, is there a way to do something like this

for i in [alldirectories]/Makefile.{in,am}
[alldirectories]/*.pc.in
; do
sed -i -e 's!$(prefix)/lib!%{_libdir}!' "$i"
done

where [alldirectories] is a recursive call into every directory within
the application.


find . -name Makefile.in -or -name Makefile.am -or -name *.pc.in
| while read f ; do ... ; done

for example.

Mamoru

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 05:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org