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

Re: Getting dh_install to do what we need



On Wed, 07 Dec 2011, Josselin Mouette wrote:
> So, to sum it up. Before, you would do in debian/rules: 
>         sed s/@DEB_HOST_MULTIARCH@/${DEB_HOST_MULTIARCH}/ debian/libfoo.install.in > debian/libfoo.install
> 
> Now, you will do in debian/foo.install:
>         #! /bin/sh 
>         sed s/@DEB_HOST_MULTIARCH@/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/ << EOF
>         …
>         EOF

Although, honestly, you could always do this in debian/rules with 

 override_dh_auto_install:
    debian/libfoo.install.sh > debian/libfoo.install
    dh_install;

so besides the breakage generated by extraneously executable
libfoo.install files, not much has changed in terms of obfuscation.
That said, explicitly calling the appropriate script to generate the
install file before the various dh_* bits were engaged is a bit
clearer.


Don Armstrong

-- 
A people living under the perpetual menace of war and invasion is very
easy to govern. It demands no social reforms. It does not haggle over
expenditures on armaments and military equipment. It pays without
discussion, it ruins itself, and that is an excellent thing for the
syndicates of financiers and manufacturers for whom patriotic terrors
are an abundant source of gain.
 -- Anatole France

http://www.donarmstrong.com              http://rzlab.ucr.edu


Reply to: