From: "Amadeusz Żołnowski" <aidecoe@aidecoe.name>
To: notmuch@notmuchmail.org
Cc: "Amadeusz Żołnowski" <aidecoe@aidecoe.name>
Subject: [PATCH] Separate Emacs miscellaneous files directory from Emacs code directory.
Date: Mon, 24 Oct 2011 20:34:58 +0200 [thread overview]
Message-ID: <1319481298-2837-1-git-send-email-aidecoe@aidecoe.name> (raw)
--emacsetcdir was added, but it's set default to the same value as
--emacslispdir for backward compatibility.
---
configure | 14 ++++++++++++++
emacs/Makefile.local | 3 ++-
2 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 3999ce8..37c0283 100755
--- a/configure
+++ b/configure
@@ -97,6 +97,7 @@ Fine tuning of some installation directories is available:
--mandir=DIR Install man pages to DIR [PREFIX/share/man]
--sysconfdir=DIR Read-only single-machine data [PREFIX/etc]
--emacslispdir=DIR Emacs code [PREFIX/share/emacs/site-lisp]
+ --emacsetcdir=DIR Emacs miscellaneous files [PREFIX/share/emacs/site-lisp]
--bashcompletiondir=DIR Bash completions files [SYSCONFDIR/bash_completion.d]
--zshcompletiondir=DIR Zsh completions files [PREFIX/share/zsh/functions/Completion/Unix]
@@ -139,6 +140,8 @@ for option; do
SYSCONFDIR="${option#*=}"
elif [ "${option%%=*}" = '--emacslispdir' ] ; then
EMACSLISPDIR="${option#*=}"
+ elif [ "${option%%=*}" = '--emacsetcdir' ] ; then
+ EMACSETCDIR="${option#*=}"
elif [ "${option%%=*}" = '--bashcompletiondir' ] ; then
BASHCOMPLETIONDIR="${option#*=}"
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then
@@ -330,6 +333,14 @@ if [ -z "${EMACSLISPDIR}" ]; then
fi
fi
+if [ -z "${EMACSETCDIR}" ]; then
+ if pkg-config --exists emacs; then
+ EMACSETCDIR=$(pkg-config emacs --variable sitepkglispdir)
+ else
+ EMACSETCDIR='$(prefix)/share/emacs/site-lisp'
+ fi
+fi
+
printf "Checking if emacs is available... "
if emacs --quick --batch > /dev/null 2>&1; then
printf "Yes.\n"
@@ -614,6 +625,9 @@ sysconfdir = ${SYSCONFDIR:=\$(prefix)/etc}
# The directory to which emacs lisp files should be installed
emacslispdir=${EMACSLISPDIR}
+# The directory to which emacs lisp files should be installed
+emacsetcdir=${EMACSETCDIR}
+
# Whether there's an emacs binary available for byte-compiling
HAVE_EMACS = ${have_emacs}
diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index ce0c3f0..0c58b82 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -38,6 +38,7 @@ install-emacs:
ifeq ($(HAVE_EMACS),1)
install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"
endif
- install -m0644 $(emacs_images) "$(DESTDIR)$(emacslispdir)"
+ mkdir -p "$(DESTDIR)$(emacsetcdir)"
+ install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
CLEAN := $(CLEAN) $(emacs_bytecode)
--
1.7.7.1
next reply other threads:[~2011-10-24 18:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-24 18:34 Amadeusz Żołnowski [this message]
2011-10-25 1:13 ` [PATCH] Separate Emacs miscellaneous files directory from Emacs code directory David Bremner
2011-10-25 7:12 ` Thomas Jost
2011-10-25 8:07 ` [PATCH] Separate Emacs misc. files dir. from Emacs code dir Amadeusz Żołnowski
2011-10-28 17:10 ` David Bremner
2011-10-25 8:11 ` [PATCH] Separate Emacs miscellaneous files directory from Emacs code directory Amadeusz Żołnowski
2011-10-25 8:17 ` Tomi Ollila
2011-10-25 8:31 ` Amadeusz Żołnowski
2011-10-25 8:50 ` Tomi Ollila
2011-10-25 8:15 ` Tomi Ollila
2011-10-25 8:40 ` Amadeusz Żołnowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1319481298-2837-1-git-send-email-aidecoe@aidecoe.name \
--to=aidecoe@aidecoe.name \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).