summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 05:13:28 +0000
committerjoey <joey>1999-08-17 05:13:28 +0000
commitb5ee70bd5ac3bf45e892612fa0b51e26ff05b688 (patch)
treec005d066a17fe19ff2eb9c1f7e8f05605fab3384
parentb316fa9df45e97dcd6ad4a8d534537a0db2cef26 (diff)
downloaddebhelper-b5ee70bd5ac3bf45e892612fa0b51e26ff05b688.tar.gz
r201: Initial Import
-rw-r--r--debian/changelog7
-rwxr-xr-xdh_installemacsen17
-rw-r--r--dh_installemacsen.115
-rw-r--r--doc/PROGRAMMING3
4 files changed, 38 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index ede72bf3..61ce4b36 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+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
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/");
}
}
-}
+}
diff --git a/dh_installemacsen.1 b/dh_installemacsen.1
index 15ec575a..df1512f5 100644
--- a/dh_installemacsen.1
+++ b/dh_installemacsen.1
@@ -3,7 +3,7 @@
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.
@@ -16,10 +16,12 @@ for an explanation of how this works.
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
@@ -29,6 +31,13 @@ for a list of options common to all debhelper commands.
.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)
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index 5a47fc25..4f071496 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -120,6 +120,9 @@ switch variable description
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.