Andres Mejia wrote:
> Before, it use to be that dh_install wouldn't automatically assume that all
> files are installed from debian/tmp. Now when installing files that don't get
> placed in debian/tmp, like say a file foo in the top source directory, you 
> have
> to do something like
> 
> $ dh_install ../../foo
> 
> Setting --sourcedir=. or --sourcedir=$(CURDIR) doesn't help. It still attempts
> to install files from debian/tmp.

That's not right. As the man page clearly states:

       From debhelper compatibility level 7 on, dh_install will
       fall back to looking in debian/tmp for files, if it
       doesn't find them in the current directory (or whereever
       you've told it to look using --sourcedir).

So, either of these works as you want:

j...@gnu:~/src/debhelper>mkdir -p usr/bin 
j...@gnu:~/src/debhelper>touch usr/bin/foo
j...@gnu:~/src/debhelper>dh_install -v usr/bin/foo
        install -d debian/debhelper//usr/bin
        cp -a ./usr/bin/foo debian/debhelper//usr/bin/

j...@gnu:~/src/debhelper>mkdir build
j...@gnu:~/src/debhelper>mv usr build
j...@gnu:~/src/debhelper>dh_install --sourcedir=build -v usr/bin/foo
        cp -a build/usr/bin/foo debian/debhelper//usr/bin/

Perhaps you were confused by the error message it prints
if it falls back to debian/tmp and does not find the file there
either?

j...@gnu:~/src/debhelper>rm -rf build 
j...@gnu:~/src/debhelper>dh_install --sourcedir=build -v usr/bin/foo
        cp -a debian/tmp/usr/bin/foo debian/debhelper//usr/bin/
cp: cannot stat `debian/tmp/usr/bin/foo': No such file or directory

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to