+debhelper (1.2.62) unstable; urgency=low
+
+ * dh_installemacsen: added support for site-start files. Added --flavor
+ and --number to control details of installation. (#36832)
+
+ -- Joey Hess <joeyh@master.debian.org> Sun, 2 May 1999 15:31:58 -0700
+
debhelper (1.2.61) unstable; urgency=low
* dh_md5sums.1: dh_md5sums is not deprecated, AFAIK, but the manpage has
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") {
}
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}) {
"s/#PACKAGE#/$PACKAGE/");
}
}
-}
+}
dh_installemacsen \- register an emacs add on package
.SH SYNOPSIS
.B dh_installemacsen
-.I "[debhelper options] [-n]"
+.I "[debhelper options] [-n] [--number=n] [--flavor=foo]"
.SH "DESCRIPTION"
dh_installemacsen is a debhelper program that is responsible for installing
files used by the debian emacsen-common package into package build directories.
If a file named debian/package.emacsen-install exists, then it is installed into
usr/lib/emacsen-common/packages/install/package in the package build
directory. Similarly, debian/package.emacsen-remove is installed into
-usr/lib/emacsen-common/packages/remove/package
+usr/lib/emacsen-common/packages/remove/package . And similarly,
+debian/package.emacsen-startup is installed into
+etc/emacs/site-start.d/50<package>.el (by default).
.P
For the first first binary package listed in the control file, you may use
-debian/emacsen-install and debian/emacsen-remove instead.
+debian/emacsen-install, debian/emacsen-remove, and debian/emacsen-startup instead.
.SH OPTIONS
.TP
.B debhelper options
.TP
.B \-n, \--noscripts
Do not modify postinst/prerm scripts.
+.TP
+.B \--number=n
+Sets the priority number of a site-start.d file. Default is 50.
+.TP
+.B \--flavor=foo
+Sets the flavor a site-start.d file will be installed in. Default is
+"emacs", alternatives include "xemacs" and "emacs20".
.SH ENVIRONMENT
See
.BR debhelper (1)
dh_movefiles will ever use this)
--destdir DESTDIR will be set to a string (probably only
dh_builddeb will ever use this)
+--flavor FLAVOR will be set to a string (probably only
+ dh_installemacsen will ever use this)
+--number NUMBER will be set to a number
Any additional command line parameters that do not start with "-" will be
ignored, and you can access them later just as you normally would.