On 2011-08-17 19:58, Paul Elliott wrote: > On Wednesday, August 17, 2011 04:46:30 AM Arno Töll wrote: >> [...] >> By the way, dh_install also has a -X option ... >> >> -Xitem, --exclude=item >> Exclude files that contain item anywhere in their filename >> from being installed. > > It did not work! The following file failed to delete COPYING LICENSE.TXT
>> #!/usr/bin/make -f >> # -*- makefile -*- >> # Sample debian/rules that uses debhelper. >> # This file was originally written by Joey Hess and Craig Small. >> # As a special exception, when this file is copied by dh-make into a >> # dh-make output file, you may use that output file without restriction. >> # This special exception was added by Craig Small in version 0.37 of >> dh-make. >> >> # Uncomment this to turn on verbose mode. >> #export DH_VERBOSE=1 >> >> %: >> dh $@ >> >> override_dh_install: >> dh_install --exclude=COPYING --exclude=LICENSE.TXT > > > But this one did delete the 2 files from the .deb file. What is wrong with -- > exclude????? >> [...] > Thank you. Hi It is because dh_install is not anything in /this particular case/. When you only one binary, dh_auto_install will use debian/$pkg rather than debian/tmp. Thus for makefile-based builds, you get everything from "make install". ~Niels -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

