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
11-29-2008, 03:00 PM
Mamoru Tasaka
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