chiark / gitweb /
Debian build: Better installation of the examples
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2015 01:16:49 +0000 (01:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Oct 2015 13:20:49 +0000 (14:20 +0100)
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>
debian/changelog
debian/libwiringpi-dev.install
debian/rules

index 1302acce8afa61e095c1c5c5d29eb85134dc4299..5943445934669f4b2d38e61dbb1a4353ed3d1b84 100644 (file)
@@ -16,6 +16,10 @@ wiringpi (2.28~iwj1) unstable; urgency=medium
     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.
 
  --
 
index d7ea901cb1fcccb647d05183ad257bdf5e021a40..a8bd6baca2a0aa4c3112de93dc8df6085e8c79b5 100644 (file)
@@ -1,3 +1,3 @@
 debian/tmp/usr/include
 debian/tmp/usr/lib/*.so
-examples               usr/share/doc/libwiringpi-dev
+examples               usr/share/doc/wiringpi
index af017e4b4189479af9021037f28c65c8ca44a997..9a08dfcb093392f8a2b2736a9ed977850b4e9dba 100755 (executable)
@@ -40,6 +40,11 @@ override_dh_auto_install:
 
 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; \
@@ -53,5 +58,8 @@ override_dh_fixperms:
        chown root.root $$b; \
        chmod 4755 $$b
 
+override_dh_compress:
+       dh_compress -Xexamples
+
 %:
        dh $@