diff options
author | joey <joey> | 1999-08-17 04:56:23 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:56:23 +0000 |
commit | a4caa9e05bc2b7e4ea034026cf0b2cda3461d4b2 (patch) | |
tree | 9c3bac7b403a289684ff62d50bad453b6166cf46 /dh_installemacsen | |
parent | 9bedb167c1a8b07ec70e0f98f5bdfb8ef0f1119e (diff) | |
download | debhelper-a4caa9e05bc2b7e4ea034026cf0b2cda3461d4b2.tar.gz |
r103: Initial revision
Diffstat (limited to 'dh_installemacsen')
-rwxr-xr-x | dh_installemacsen | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dh_installemacsen b/dh_installemacsen new file mode 100755 index 00000000..e87cecef --- /dev/null +++ b/dh_installemacsen @@ -0,0 +1,34 @@ +#!/bin/sh -e +# +# Registration with emacsen-common. + +PATH=debian:$PATH:/usr/lib/debhelper +. dh_lib + +for PACKAGE in $DH_DOPACKAGES; do + TMP=`tmpdir $PACKAGE` + + emacsen_install=`pkgfile $PACKAGE emacsen-install` + emacsen_remove=`pkgfile $PACKAGE emacsen-remove` + + if [ "$emacsen_install" ]; then + if [ ! -d "$TMP/usr/lib/emacsen-common/packages/install" ]; then + doit "install -d $TMP/usr/lib/emacsen-common/packages/install" + fi + doit "install $emacsen_install $TMP/usr/lib/emacsen-common/packages/install/$PACKAGE" + fi + + if [ "$emacsen_remove" ]; then + if [ ! -d "$TMP/usr/lib/emacsen-common/packages/remove" ]; then + doit "install -d $TMP/usr/lib/emacsen-common/packages/remove" + fi + doit "install $emacsen_remove $TMP/usr/lib/emacsen-common/packages/remove/$PACKAGE" + fi + + if [ "$emacsen_install" -o "$emacsen_remove" ]; then + if [ ! "$DH_NOSCRIPTS" ]; then + autoscript "postinst" "postinst-emacsen" + autoscript "prerm" "prerm-emacsen" + fi + fi +done |