On Wed, Dec 07, 2011 at 11:47:49PM +0100, Josselin Mouette wrote:
> For those who haven’t followed, the latest debhelper upload includes the
> following change:
> 
>    * Debhelper config files may be made executable programs that output the
>      desired configuration. No further changes are planned to the config file
>      format; those needing powerful syntaxes may now use a programming 
> language
>      of their choice. (Be careful aiming that at your feet.)
>      Closes: #235302, #372310, #235302, #614731,
>      Closes: #438601, #477625, #632860, #642129
> 
> 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
> (Bonus points for implementing this in a different language for each
> package.)

Note you also need to add a chmod +x debian/*.sh in debian/rules, since
apart from debian/rules, nothing has the executable bit after
dpkg-source -x.

Mike


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111208065319.gb4...@glandium.org

Reply via email to