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

Re: Is dh_install doesn't rm the files?



Joey Hess <joey@kitenet.net> writes:

> Shaul Karl wrote:
> > According to the dh_movefiles man page, 
> > 
> >     dh_install is a much better program that can do everything this
> >     one can, and more'.
> > 
> > Yet with dh_install I was only able to cp -a files without the addition 
> > of rm them out of their current place.
> > 
> > What am I missing?
> 
> Well ok, it can do everything dh_movefiles can do except for deleting
> the files it moves. The only time I can see that you'd want to do that
> is if you want to make sure you move _everything_. I already have a
> wishlist bug to that effect, I think; I've not decided how I want to
> deal with it yet.

The "move" is really useful if you maintain a source package with
multiple binary package where the upstream author constantly adds new files.

# Check if all files have moved out
	if [ `find $(BUILD) -not -type d | wc -l` -ne 0 ]; then find $(BUILD) -not -type d; echo "File(s) found not belonging to any package, please contact maintainer"; exit 1; fi

Ciao
        Racke

-- 
Free resources for Interchange programming NOW !!! 
Don't hesitate to contact me if you need my professional help.
Your core developer and consultant for the most sophisticated,
flexible and extensible Open Source eCommerce software.


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: