I see! I understand now, thanks to your explanation. I can use your
"stupid" script as a small hack to move development back to WSL. Thanks!
I showed the documentation to a few of my colleagues and none of them could
make use of it. It is not intuitive to any of us to expect a configuration
file to be replaceable with an executable that echoes back configurations.
Is this common practice in Linux? I highly recommend a simple explanation
like the one you just said is added to the documentation.

On Sun, Jun 17, 2018 at 7:45 PM, gregor herrmann <gre...@debian.org> wrote:

> On Sun, 17 Jun 2018 17:28:06 +0300, Nadav Ruskin wrote:
>
> > > And what of the documentation in debhelper(7) is not clear enough of
> how the
> > > executable install scripts should "look"?
> > You're right, I meant output. It doesn't say how the install mechanism
> > works, I don't know what sort of commands I'd need to use to manually
> copy
> > files to my Debian package and how to instruct "dpkg" where to install
> it.
> > I don't see any reference for further reading.
>
> Both dh_install(1) and the page you mentioned:
> https://www.debian.org/doc/manuals/maint-guide/dother.en.html#install
> explain that a (non-executable) debian/package.install file looks
> like
>
>     src/bar usr/bin
>
> which means that the file bar from the directory src/ will get
> installed into the directory usr/bin in the package.
>
> Now the only difference with an executable debian/package.install is
> that the same contents isn't written staticially but is the output of
> the script. E.g. to achieve the same, debian/package.install could
> say:
>
>     #!/bin/sh
>     echo "src/bar usr/bin"
>
> which would be a bit stupid but should work that way :)
>
> The real power and purpose of executable debhelper helper files is to
> calculate paths at build time, e.g. depending on the architecture.
> A reallife example from the perl world:
>
>     % cat libtext-bibtex-perl/debian/libtext-bibtex-perl.install
>     #!/usr/bin/perl -w
>
>     use Config;
>
>     # expand the perl binary module directory at build time
>     print substr($Config{vendorarch}, 1) . "\n";
>
>     print <<EOF
>     usr/share/man/man3/*.3pm
>     EOF
>
>
> Cheers,
> gregor
>
> --
>  .''`.  https://info.comodo.priv.at -- Debian Developer
> https://www.debian.org
>  : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649
> AA06
>  `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation
> Europe
>    `-   NP: Flying Pickets: Who's That Girl
>
> -----BEGIN PGP SIGNATURE-----
>
> iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAlsmkCpfFIAAAAAALgAo
> aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
> RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
> qgZWJBAAqWE/6uxJYu2lxQd+xbPYCj/Xc65M+th5JJpE+xxpgii1gd/hNjvN+8n5
> JCBarEkrvGB6DJgzGz0F+yt8opygctSZv9eK4JkM5ioMxEfIznqv22auSRalNK/w
> xzAtaRdLScXjiTaKE6sV/9PrES6VL1r4Q/Op+eICQgkguRZ4cXZXFjCEFZSKuxh2
> p1DjgGToIsLkFjIzEQ9KEBpJpYXTdWHjJInlPtCk4qaSQZumjFUuiZCLnTLXsbf5
> 32shVh+r9qhgLWovSn1p0Ccc/rgHb1iRwb9l4vYvSzVZgKlA9ubos5dlVBSdEYRM
> nQJ1ezqQpNQhBbaWAumnpg/ptzBNyJP3L/qxJRvXOew9mgNoNqTMEhRLsQs5qU4c
> CU7ya5t9YiYkqQAE2uSWAgfrK04x8C7IFgQP7FZ/+l+VEMosVVkow8WWdA+yrRhY
> MW7JOSGUVwIwwydM5R6BX8yzJAnx3fuqJ74398xnF5plCdBzGhXMts8teet6Lptd
> meHYYcruo0JxRcXOgeIUtLMnHJhbD6Vvgi7vFg43oZr2wQ2aGSNwVhhp1asnxupr
> pmHuFX6OnCS3+gzxig5jzpZevLq+b/hCmu3vCIzpMbaUsC73DviRr6w6gC1P1dWg
> mZ8N0q0LGRup8OelUAX/j2RitmGqi8OXlYEGY4cHYx18PWMVYJY=
> =UKzV
> -----END PGP SIGNATURE-----
>
>


-- 
Regards,
Nadav Ruskin

Reply via email to