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

Re: Problem with debian/rules



* Mathieu Malaterre <mathieu.malaterre@gmail.com>, 2009-09-08, 11:38:
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

`find | xargs rm` complains if no files were found. A more robust way to find-and-delete files is to use the -delete option for find.

Of course, you should investigate why some files you are trying to delete are missing.

--
Jakub Wilk


Reply to: