[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Lintian: image-file-in-usr-lib



On Mon, Mar 17, 2003 at 01:38:03PM +0100, Andreas Tille wrote:
> While I absolutely admit that image data do not belong to /usr/lib but rather to
> /usr/share I do not really know whether it makes sense to move these images and
> create symlinks later on because zope expects these images exactly at this location.
> 
> Any hints what to do here?

Well, in the last zope package i moved all the file under /usr/share whith a
simple script:

	# Moving image files.
	usr_lib=$(usrdir)/lib/python ;\
	usr_share=usr/share/zope ;\
	root=debian/zope ;\
	find $$root/$$usr_lib $(images) | \
		while read image ; do \
			file=$$(echo $$image | sed "s#$$root/$$usr_lib/##") ;\
			install -m 644 -D $$image $$root/$$usr_share/$$file ;\
			rm -f $$image ;\
			echo $$usr_share/$$file $$usr_lib/$$file ;\
		done | \
			xargs dh_link -pzope

Of course, it made sense with the entire zope package: i think it is the
solution by now.
I'll adopt the same solution for the other zope packages i maintain.

ciao,
-- 
Luca - De Whiskey's - De Vitis              | Elegant or ugly code as well
aliases: Luca ^De [A-Z][-A-Za-z]*[iy]'?s$   | as fine or rude sentences have
Infinite loop: see `Loop, infinite'.        | something in common: they
Loop, infinite: see `Infinite loop'.        | don't depend on the language.



Reply to: