[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/realgud 211c01a 014/140: Fix misfeatures in install-fro
From: |
Rocky Bernstein |
Subject: |
[elpa] externals/realgud 211c01a 014/140: Fix misfeatures in install-from-git.sh... |
Date: |
Sat, 25 May 2019 19:35:21 -0400 (EDT) |
branch: externals/realgud
commit 211c01aa4758a295bbd849cc211656df02b4738c
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Fix misfeatures in install-from-git.sh...
Install .nosearch when install in from git. Fixes #187
Docuement .nosearch in file
Build code in /tmp
realgud repo has changed: rocky/emacs-dbgr -> realgud/realgud
command.el: use better org formatting
---
install-from-git.sh | 21 ++++++++++++---------
realgud/.nosearch | 11 +++++++++++
realgud/Makefile.am | 16 ++++++++++++++++
realgud/common/buffer/command.el | 2 +-
4 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/install-from-git.sh b/install-from-git.sh
index 8f1291a..76d5c3c 100755
--- a/install-from-git.sh
+++ b/install-from-git.sh
@@ -47,6 +47,7 @@
# GIT_PROTOCOL='git' SUDO_CMD=' ' sh ./install-from-git.sh --prefix=/tmp
GIT_PROTOCOL=${GIT_PROTOCOL:-https}
+MAKE=${MAKE:-make}
# Run and echo a command
run_cmd() {
@@ -79,24 +80,26 @@ fi
for program in git make $try_cmd ; do
if ! which $program >/dev/null 2>&1 ; then
- echo "Can't find program $program in $PATH"
+ echo 2>&1 "Can't find program $program in $PATH"
exit 1
fi
done
-for pkg in emacs-{test-simple,load-relative,loc-changes,dbgr} ; do
+cd /tmp
+for pkg in rocky/emacs-{test-simple,load-relative,loc-changes} realgud/realgud
; do
echo '******************************************'
echo Trying to install ${pkg}...
echo '******************************************'
- if [[ -d $pkg ]]; then
- run_cmd $need_sudo rm -fr $pkg
+ pkg_short=$(basename $pkg)
+ if [[ -d $pkg_short ]]; then
+ run_cmd $need_sudo rm -fr $pkg_short
fi
- run_cmd git clone ${GIT_PROTOCOL}://github.com/rocky/${pkg}.git
- (cd $pkg && \
+ run_cmd git clone ${GIT_PROTOCOL}://github.com/${pkg}.git
+ (cd $pkg_short && \
run_cmd $SHELL ./autogen.sh && \
run_cmd ./configure $@ && \
- run_cmd make && \
- run_cmd make check && \
- run_cmd $need_sudo make install
+ run_cmd ${MAKE} && \
+ run_cmd ${MAKE} check && \
+ run_cmd $need_sudo ${MAKE} install
)
done
diff --git a/realgud/.nosearch b/realgud/.nosearch
index e69de29..d9771c7 100644
--- a/realgud/.nosearch
+++ b/realgud/.nosearch
@@ -0,0 +1,11 @@
+The default install-from-git.sh can install realgud into a site-lisp,
+e.g /usr/local/share/emacs-site-lisp.
+
+site-lisp directories and their subdirectories may be automatically
+added to load path, in particular in Debian
+/usr/local/share/emacs/site-lisp/ is added to load-path before emacs
+system directories. So realgud's common/buffer/info.el is loaded
+before emacs's info.el
+
+Adding this ".nosearch" file prevents emacs from adding realgud to the
+load-path.
diff --git a/realgud/Makefile.am b/realgud/Makefile.am
index 75a2af8..ad4daa8 100644
--- a/realgud/Makefile.am
+++ b/realgud/Makefile.am
@@ -1 +1,17 @@
+# Directories to run recursive makes
SUBDIRS = common debugger lang
+
+# lispdir needs to get set here because it seems
+# to automatically use the parent root. Not sure
+# why that is since none of the other subdirectories have this
+# problem.
+lispdir = ${datarootdir}/emacs/site-lisp/realgud
+
+# My default this is based off of $lispdir, but that
+# is set funny, so we'll be explicit about lispdir_realgud
+# althoug in fact it isn't used.
+lispdir_realgud = ${datarootdir}/emacs/site-lisp/realgud
+
+# .nosearch isn't a lisp file, but we want it installed along with the
+# lisp files.
+lisp_LISP = .nosearch
diff --git a/realgud/common/buffer/command.el b/realgud/common/buffer/command.el
index 2ccdafd..8e0e66c 100644
--- a/realgud/common/buffer/command.el
+++ b/realgud/common/buffer/command.el
@@ -195,7 +195,7 @@
(maphash
(lambda (k v)
(push (format
- " - %s\t: %s" k (realgud:org-mode-encode v ""))
+ " - %s\t::\t%s" k (realgud:org-mode-encode v ""))
r))
hash-table)
r)
- [elpa] externals/realgud d026e8b 001/140: Start macro for delayed-, (continued)
- [elpa] externals/realgud d026e8b 001/140: Start macro for delayed-, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud dcb87ed 004/140: Merge pull request #177 from realgud/fringe-arrow, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 3d0fcb8 002/140: Match nested prompts in python trepan debuggers, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud ad333ac 006/140: realgud-bp-line-{en/di}sabled-face change..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud b3719fa 005/140: Add autoloads for defalias debugger invocations, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 839954a 016/140: Add more default commands modelled from gdb, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud f884fe7 003/140: Simplify and perhaps generalize, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 7c0d2c4 007/140: fixed unload; added ert-based tests for realgud, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 0647be7 015/140: Spelling typos, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 8beb4f5 009/140: Merge pull request #182 from roymath/master, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 211c01a 014/140: Fix misfeatures in install-from-git.sh...,
Rocky Bernstein <=
- [elpa] externals/realgud 3f1b98f 010/140: (realgud:load-features) now features loaded, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 50dc7db 022/140: Info ..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud c7594f0 032/140: wrong 'let' syntax - caught thanks to the jodonnell's test!, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 37ba671 037/140: Comment better a track test, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud eeb4c2f 013/140: Bug in last commit., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 811e7b9 036/140: < -> <=. See comment before, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 2295d94 024/140: making eval print to the message area, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 83d471f 008/140: return the set of features removed, in realgud:unload-features(), Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud f41b7a7 017/140: When a breakpoint is seen, add source..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 1f59502 021/140: Merge pull request #192 from dvzubarev/master, Rocky Bernstein, 2019/05/25