3 # Reads debian/examples, installs all files listed there into
4 # /usr/share/doc/$PACKAGE/examples
6 BEGIN { push @INC, "debian", "/usr/share/debhelper" }
10 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
11 $TMP=tmpdir($PACKAGE);
12 $file=pkgfile($PACKAGE,"examples");
17 @examples=filearray($file);
20 if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
21 push @examples, @ARGV;
25 if (! -d "$TMP/usr/share/doc/$PACKAGE/examples") {
26 doit("install","-d","$TMP/usr/share/doc/$PACKAGE/examples");
29 doit("cp","-a",@examples,"$TMP/usr/share/doc/$PACKAGE/examples");