From: Ian Jackson Date: Thu, 18 Oct 2007 16:38:19 +0000 (+0100) Subject: * hosts/* installed as examples with a big fat warning. X-Git-Tag: converted-from-bzr~14^2~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a8c76e2b765be90f8ef3fe61c0ab510f08b8d441;p=autopkgtest.git * hosts/* installed as examples with a big fat warning. --- diff --git a/debian/changelog b/debian/changelog index 2ee37cd..a826be1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,7 @@ autopkgtest (1.1.0~) unstable; urgency=low * hosts/cadmium/onepackage-config: set PATH (was in lalonde-nightly) * adt-testreport-onepackage: many manpage improvements * adt-testreport-runloop: add to Makefile + * hosts/* installed as examples with a big fat warning. -- Ian Jackson Thu, 18 Oct 2007 17:17:31 +0100 diff --git a/debian/rules b/debian/rules index bf23cec..6eecbc1 100755 --- a/debian/rules +++ b/debian/rules @@ -52,6 +52,21 @@ 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/onepackage-config; \ + 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; \ done