chiark / gitweb /
debian/: Refactor combining (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Apr 2017 11:12:32 +0000 (12:12 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Apr 2017 11:12:32 +0000 (12:12 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/rules

index e0cdc45..df89097 100755 (executable)
@@ -65,15 +65,11 @@ override_dh_auto_install:
        -
        rename 's/^/ucgi-/' debian/userv-www-cgi/usr/share/doc/*
        -
-       set -e; cd debian/userv-ipif/usr/share/doc;     \
-               mv userv-ipif userv-utils;              \
-               cd userv-utils
-       cp -al debian/userv-ipif/. debian/userv-utils/.
-       -
-       set -e; cd debian/userv-ucgi/usr/share/doc;     \
-               mv userv-ucgi userv-utils;              \
-               cd userv-utils
-       cp -al debian/userv-ucgi/. debian/userv-utils/.
+       set -e; for p in userv-ipif userv-ucgi; do              \
+               (cd debian/$$p/usr/share/doc;                   \
+                mv $$p userv-utils);                           \
+               cp -al debian/$$p/. debian/userv-utils/.;       \
+       done
        -
        perl -pe 's{/usr/local/}{/usr/}' ucgi/www-cgi   \
                >debian/userv-utils/etc/userv/services.d/www-cgi