]> git.donarmstrong.com Git - debhelper.git/commitdiff
r201: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:13:28 +0000 (05:13 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:13:28 +0000 (05:13 +0000)
debian/changelog
dh_installemacsen
dh_installemacsen.1
doc/PROGRAMMING

index ede72bf37baa615af90776349f243dd21af09f33..61ce4b36d07618a66c953fec9174411ab8c44e42 100644 (file)
@@ -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
index 79c7dda93769fd9b4b4fdfeb11919a282e244705..0b2f6b8093488726a0654d0080091475784867a3 100755 (executable)
@@ -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/");
                }
        }
-}
+}      
index 15ec575a823dccdf63be5e96f47aeccf0c97bd99..df1512f5f40fe0f762e3fbd4e6fe38fbffe91d32 100644 (file)
@@ -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)
index 5a47fc2569173069be08b627a01c2aab05b227c4..4f0714967e068d924ab300000c79f097b0771773 100644 (file)
@@ -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.