From 1a7eb5ca6ce37d15799f9309ef05f6c54027cebc Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Wed, 15 May 2013 21:58:31 -0700 Subject: [PATCH] [debian/emacsen-install] Upgrade to latest debhelper version. (Closes: #703583) --- debian/emacsen-install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/emacsen-install b/debian/emacsen-install index 1b413e5..29cf140 100644 --- a/debian/emacsen-install +++ b/debian/emacsen-install @@ -22,6 +22,7 @@ FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} +ELRELDIR=../../../emacs/site-lisp/${PACKAGE} # Install-info-altdir does not actually exist. # Maybe somebody will write it. @@ -33,13 +34,14 @@ fi install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` -cp ${FILES} ${ELCDIR} cd ${ELCDIR} +ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el -(setq load-path (cons "." load-path) byte-compile-warnings nil) +(debian-pkg-add-load-path-item ".") +(setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} -rm -f *.el path.el +rm -f path.el exit 0 -- 2.51.2