[med-svn] r3925 - trunk/packages/dicom3tools/trunk/debian
Mathieu Malaterre
malat-guest at alioth.debian.org
Tue Sep 8 09:16:49 UTC 2009
Author: malat-guest
Date: 2009-09-08 09:16:49 +0000 (Tue, 08 Sep 2009)
New Revision: 3925
Modified:
trunk/packages/dicom3tools/trunk/debian/rules
Log:
some cleanups
Modified: trunk/packages/dicom3tools/trunk/debian/rules
===================================================================
--- trunk/packages/dicom3tools/trunk/debian/rules 2009-09-08 08:19:34 UTC (rev 3924)
+++ trunk/packages/dicom3tools/trunk/debian/rules 2009-09-08 09:16:49 UTC (rev 3925)
@@ -70,10 +70,13 @@
dh_installdirs
# Add here commands to install the package into debian/dicom3tools.
+ # install everything
$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install
- # man pages:
+ # install man pages:
$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install.man
+ # remove empty man page
find $(CURDIR)/debian/dicom3tools -type f -size 0 -print | xargs rm
+ # now that we have removed empty man page, we need to remove associated binaries
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 \
@@ -93,7 +96,7 @@
# hyphen-used-as-minus-sign
#find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/-/\\-/g' {} \;
# Can't use above -> manpage-has-bad-whatis-entry
- # Remove except list :
+ # Remove (except special list from official upstream releases) :
find $(CURDIR)/debian/dicom3tools/usr/bin -type f -not \( -name andump\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* \) -print | xargs rm; \
find $(CURDIR)/debian/dicom3tools/usr/share/man -type f -not \( -name andump\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* \) -print | xargs rm; \
@@ -120,10 +123,7 @@
dh_builddeb
$(UPSTREAM_SRC).tar.bz2:
- #uscan --force-download --verbose --repack
- echo $@
wget http://www.dclunie.com/dicom3tools/workinprogress/$@
- # http://www.dclunie.com/dicom3tools/workinprogress/dicom3tools_1.00.snapshot.20090716.tar.bz2
get-orig-source: $(UPSTREAM_SRC).tar.bz2
tar xjf $(UPSTREAM_SRC).tar.bz2
More information about the debian-med-commit
mailing list