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

Re: Enabling uscan to simply remove files from upstream source



Hi Charles,

On Tue, Aug 21, 2012 at 09:11:47PM +0900, Charles Plessy wrote:
> As suggested in [🔎] 20120818224444.GT5914@jones.dk">http://lists.debian.org/[🔎] 20120818224444.GT5914@jones.dk,
> something similar to the following two commands would do be compatible with the
> syntax of the Files field (although I am still unsure if a prefix to
> <expression> needs to be added or not).
> 
>     find ${MAIN_SOURCE_DIR}/* -path <expression> -delete
> 
>     find ${MAIN_SOURCE_DIR}/* type f -name <expression> -delete
> 
> The key limitation of the solution you propose, apart from the complexity of
> introducing a new syntax, is that it can not recognise expressions such as
> */Makefile.in, as in the example of the Files field.

I wonder what you and Jacub mean with this.  Did any of you read the
example script I attached to my mail[1].  It implements what you are
writing above.  Some testing would be nice.

I somehow afraid that my cut-n-pasto in item 1. where I said

   'rm -rf ${MAIN_SOURCE_DIR}/<expression>'  (=old, outdated, wrong)

might have lead to the confusion.  Please forget this and read

   'find ... -delete'                        (=what I intended to write)

(as it is realised inside the code ...)

Kind regards

        Andreas.

[1] http://lists.debian.org/debian-devel/2012/08/msg00600.html

-- 
http://fam-tille.de


Reply to: