Is there a less ugly way?
On Sun, 2021-11-21 at 21:22 +0100, Marc Haber wrote:
Is there a less ugly way?
Send upstream a patch to create a directory structure like this:
src/
examples/
c/
c++/
If you're only after workarounds, there are two options:
Run dh_installexamples twice. First install the C++ examples, then
mkdir c++, then mv * c++, then install the C examples.
Read the dh_installexamples code and adapt the `cd && find | sort |
xargs cp` command that dh_installexamples is just a wrapper for.
I have a package which source tarball containst two examples
directories:
src/examples
src/c++/examples
Since both directories contain a Makefile, I would like to install src/examples to /usr/share/doc/package/examples and src/c++/examples to /usr/share/doc/package/examples/c++.
This seems to be beyond dh_installexamples' capabilities.
What would you suggest? I could override dh_auto_installexamples (does
that one exist?), using dh_installexamples to install
src/examples to /usr/share/doc/package/examples and then manually copy src/c++/examples to /usr/share/doc/package/examples/c++
Is there a less ugly way?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (3 / 13) |
Uptime: | 58:44:21 |
Calls: | 6,653 |
Calls today: | 5 |
Files: | 12,200 |
Messages: | 5,331,149 |