chiark / gitweb /
: ${:=} not ${:=}
[autopkgtest.git] / debian / rules
index f870a74acb7d57f63ecba18b3241ae3c537b07be..37c955ed28092a279e767a47e85201d0114cd695 100755 (executable)
@@ -52,8 +52,23 @@ binary binary-indep: checkdir
        cd debian/$p-$x/etc/userv/services.d && \
                mv -f adt-xenlvm-testbed:dist adt-xenlvm-testbed
 
+       set -e;                                                         \
+         d=debian/autopkgtest/usr/share/doc/autopkgtest/examples/;     \
+         mkdir -p -m755 $$d;                                           \
+         cp --preserve=timestamps -dR hosts $$d;                       \
+         find $$d -name '*~' -o -name '#*#' -exec rm -- '{}' ';';      \
+         for f in $$d/hosts/*; do                                      \
+           cp debian/host-example-WARNING $$f/WARNING;                 \
+           cf=$$f/cfg;                                                 \
+           if test -f $$cf; then                                       \
+             sed -e 's/^/# /' debian/host-example-WARNING >$$cf.new;   \
+             echo >>$$cf.new;  cat $$cf >>$$cf.new;                    \
+             mv -f $$cf.new $$cf;                                      \
+           fi;                                                         \
+         done
+
        set -e; for f in $p $p-$x; do \
-               cp debian/copyright >debian/$$f/usr/share/doc/$$f/copyright; \
+               cp debian/copyright debian/$$f/usr/share/doc/$$f/copyright; \
                done
        dh_installinit -p $p-$x --onlyscripts --name=adt$x -- defaults 19
        dh_installchangelogs