diff options
author | joey <joey> | 1999-08-17 05:13:28 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:13:28 +0000 |
commit | b5ee70bd5ac3bf45e892612fa0b51e26ff05b688 (patch) | |
tree | c005d066a17fe19ff2eb9c1f7e8f05605fab3384 /dh_installemacsen | |
parent | b316fa9df45e97dcd6ad4a8d534537a0db2cef26 (diff) | |
download | debhelper-b5ee70bd5ac3bf45e892612fa0b51e26ff05b688.tar.gz |
r201: Initial Import
Diffstat (limited to 'dh_installemacsen')
-rwxr-xr-x | dh_installemacsen | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/dh_installemacsen b/dh_installemacsen index 79c7dda9..0b2f6b80 100755 --- a/dh_installemacsen +++ b/dh_installemacsen @@ -6,11 +6,19 @@ BEGIN { push @INC, "debian", "/usr/lib/debhelper" } use Dh_Lib; init(); +if (! defined $dh{number}) { + $dh{number}=50; +} +if (! defined $dh{flavor}) { + $dh{flavor}='emacs'; +} + foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); $emacsen_install=pkgfile($PACKAGE,"emacsen-install"); $emacsen_remove=pkgfile($PACKAGE,"emacsen-remove"); + $emacsen_init=pkgfile($PACKAGE,"emacsen-init"); if ($emacsen_install ne '') { if (! -d "$TMP/usr/lib/emacsen-common/packages/install") { @@ -25,6 +33,13 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } doit("install","$emacsen_remove","$TMP/usr/lib/emacsen-common/packages/remove/$PACKAGE"); } + + if ($emacsen_init ne '') { + if (! -d "$TMP/etc/$dh{flavor}/site-start.d/") { + doit("install","-d","$TMP/etc/$dh{flavor}/site-start.d/"); + } + doit("install",$emacsen_init,"$TMP/etc/$dh{flavor}/site-start.d/$dh{number}$PACKAGE.el"); + } if ($emacsen_install ne '' || $emacsen_remove ne '') { if (! $dh{NOSCRIPTS}) { @@ -34,4 +49,4 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { "s/#PACKAGE#/$PACKAGE/"); } } -} +} |