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

Re: Problem with debian/rules



On Tue, Sep 8, 2009 at 12:38 PM, Mathieu
Malaterre<mathieu.malaterre@gmail.com> wrote:
> Hi there,
>
>  There is a problem with the following rules file (in dicom3tools), I wrote:
>
>        for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn
> dccmp dccomb dcdecmpr dcdiff dclutburn \
>                                                        dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost
> dcproj dcrmsfx.all dcsrdump \
>                                                        dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat
> gentodc.dat.all jpegdump \
>                                                        jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith
> rawdiff rawmask rawnjl; do \
>                find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \
>        done
>
>
> But this seems to be a problem on every single buildd machine (*).
> Does anyone see what could be wrong ?
I think the problem is that sometimes find does not find anything and
rm complain about missing argument. Like this:
$ rm
rm: missing operand
Try `rm --help' for more information.
Try to use rm -rf:
$ rm -rf
$ echo $?
0
$

> What I am trying to do is
> remove, at the same time any existing man page ($file.1) or executable
> ($file) from a top level directory.
>
> Thanks,
>
> (*)
> https://buildd.debian.org/fetch.cgi?pkg=dicom3tools&arch=amd64&ver=1.0~20090716-1&stamp=1251914363&file=log&as=raw
>
> for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn
> dccmp dccomb dcdecmpr dcdiff dclutburn \
>                                                        dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost
> dcproj dcrmsfx.all dcsrdump \
>                                                        dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat
> gentodc.dat.all jpegdump \
>                                                        jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith
> rawdiff rawmask rawnjl; do \
>                find /build/buildd/dicom3tools-1.0~20090716/debian/dicom3tools -type
> f -name $file\* -print | xargs rm; \
>        done
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
> rm: missing operand
> Try `rm --help' for more information.
>
>
> --
> Mathieu
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



-- 
Zaar


Reply to: