Re: removing previous installed files



On Mon, Jan 27, 2003 at 08:49:20AM +1300, Mark McLoughlin wrote:
> Hey,
> 	So, not for the first time, I'm presented with the need to be sure that
> when a new version of a package is installed a file that was in previous
> versions of the package is removed - it cannot be left lying around.
> 
> 	Now, what I did previously was just install a zero-length version of
> the file - but that's not ideal. Is there anything wrong with something
> like
> 
> install-data-local:
> 	if test -f file-I-want-to-kill; then \
> 		rm file-I-want-to-kill; \
> 	fi
> 
> 	Will this cause any problems for packagers ? Does it go against the
> holey laws of the autolord ?

  I do 

rm -f COPYING.LIB COPYING
ln -s Copyright COPYING

in libxml2 and libxslt configure.in just before AC_OUTPUT(), and so far
nobody complained :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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