Put the .sh exaples in wiringpi-tools
But, put all the examples in /usr/share/doc/wiringpi/examples no
matter which package they're in.
Do not compress any of them.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
will ensure that we detect such mistakes.
* Do not install COPYING.LESSER, which is redundant on a Debian
derivative (which will have /usr/share/common-licences).
+ * Better installation of the examples: put the .sh exaples in
+ wiringpi-tools, but put all the examples in
+ /usr/share/doc/wiringpi/examples no matter which package they're in;
+ and do not compress any of them.
--
debian/tmp/usr/include
debian/tmp/usr/lib/*.so
-examples usr/share/doc/libwiringpi-dev
+examples usr/share/doc/wiringpi
override_dh_install:
dh_install -X COPYING.LESSER
+ set -e; cd debian/libwiringpi-dev; \
+ for f in `find usr/share/doc -name \*.sh`; do \
+ mkdir -p ../wiringpi-tools/$${f%/*}; \
+ mv $$f ../wiringpi-tools/$$f; \
+ done
set -ex; for l in libwiringPi libwiringPiDev; do \
ln -sf $$l.so.$${VERSION} \
debian/libwiringpi$$soname/usr/lib/$$l.so.$$soname; \
chown root.root $$b; \
chmod 4755 $$b
+override_dh_compress:
+ dh_compress -Xexamples
+
%:
dh $@