diff options
author | joey <joey> | 1999-08-17 05:12:07 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:12:07 +0000 |
commit | 430dd853a0827cf0419d2531cf163d4c1e19c4f9 (patch) | |
tree | ae457262f779a02c68718788b46c4c5bf7038626 /dh_installmime | |
parent | 540263202bcd5666ba65cd40e8587fdc9d48109a (diff) |
r189: Initial revision
Diffstat (limited to 'dh_installmime')
-rwxr-xr-x | dh_installmime | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dh_installmime b/dh_installmime new file mode 100755 index 0000000..232ddc1 --- /dev/null +++ b/dh_installmime @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +BEGIN { push @INC, "debian", "/usr/lib/debhelper" } +use Dh_Lib; +init(); + +foreach $PACKAGE (@{$dh{DOPACKAGES}}) { + $TMP=tmpdir($PACKAGE); + $mime=pkgfile($PACKAGE,"mime"); + + if ($mime ne '') { + if (! -d "$TMP/usr/lib/mime/packages") { + doit("install","-d","$TMP/usr/lib/mime/packages"); + } + doit("install","-p","-m644",$mime,"$TMP/usr/lib/mime/packages/$PACKAGE"); + + if (! $dh{NOSCRIPTS}) { + autoscript($PACKAGE,"postinst","postinst-mime"); + autoscript($PACKAGE,"postrm","postrm-mime") + } + } +} |