Skip to content

Commit

Permalink
Move ipdb out of realgud core
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Apr 30, 2019
0 parents commit 90dfb29
Show file tree
Hide file tree
Showing 17 changed files with 1,131 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
@@ -0,0 +1,25 @@
*.elc
*~
/*-pkg.el
/*.tar.gz
/.byebug_history
/.python-version
/.ruby-version
/README
/aclocal.m4
/autom4te.cache
/common.mk
/config.log
/config.status
/configure
/configure.lineno
/elpa
/install-sh
/missing
/test/npm-debug.log
/tmp
Makefile
Makefile.in
elc-stamp
elc-temp
script
49 changes: 49 additions & 0 deletions Makefile.am
@@ -0,0 +1,49 @@
# Note: This makefile include remake-style target comments.
# These comments before the targets start with #:
# remake --tasks to shows the targets and the comments

SUBDIRS = ipdb test

GIT2CL ?= git2cl
RUBY ?= ruby

lispdir = @lispdir@

lisp_files = $(wildcard *.el)
lisp_LISP = $(lisp_files)
include common.mk

PHONY=check clean dist distclean test check-short check-terse install-short

EXTRA_DIST = common.mk.in INSTALL.md README.md THANKS $(lisp_files)

if MAINTAINER_MODE

#: Remove change log: ChangeLog
rmChangeLog:
rm ChangeLog || true

#: Create a ChangeLog file from git logs
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) > $@

ACLOCAL_AMFLAGS=-I .

endif

#: Run all tests
test: check

#: Run all tests without bloated output
check-short:
$(MAKE) check 2>&1 | $(RUBY) test/make-check-filter.rb

#: Run all tests without and show just the failure lines
check-terse:
$(MAKE) check 2>&1 | $(RUBY) tes/make-check-filter.rb | grep failure

#: Run "make install" non-verbosely
install-short:
$(MAKE) install 2>&1 | $(RUBY) test/make-check-filter.rb

.PHONY: test check check-short rmChangeLog
1 change: 1 addition & 0 deletions README.md
@@ -0,0 +1 @@
Emacs Lisp Module to add [ipdb](https://pypi.org/project/ipdb/) support to [realgud](http://github.com/rocky/emacs-dbgr).
12 changes: 12 additions & 0 deletions autogen.sh
@@ -0,0 +1,12 @@
#!/bin/sh
# An autoconf setup script.
# From inside emacs, make sure test-simple is installed and then
# Press C-x C-e at the end of the next line run this script
# (test-simple-run "EMACSLOADPATH=%s ./autogen.sh" (mapconcat 'identity load-path ":"))
ln -fs README.md README
touch common.mk
autoreconf -vfi && \
autoconf && {
echo "Running configure with --enable-maintainer-mode $@"
./configure --enable-maintainer-mode $@
}
24 changes: 24 additions & 0 deletions common.mk.in
@@ -0,0 +1,24 @@
MOSTLYCLEANFILES = *.elc
EMACSLOADPATH=@EMACSLOADPATH@

short:
$(MAKE) 2>&1 >/dev/null | ruby $(top_srcdir)/make-check-filter.rb

%.short:
$(MAKE) $(@:.short=) 2>&1 >/dev/null

# This is the default target but We need to include an EMACSLOADPATH
.el.elc:
if test "$(EMACS)" != "no"; then \
am__dir=. am__subdir_includes=''; \
case $@ in */*) \
am__dir=`echo '$@' | sed 's,/[^/]*$$,,'`; \
am__subdir_includes="-L $$am__dir -L $(srcdir)/$$am__dir"; \
esac; \
test -d "$$am__dir" || $(MKDIR_P) "$$am__dir" || exit 1; \
EMACSLOADPATH=$(EMACSLOADPATH) $(EMACS) --batch \
$(AM_ELCFLAGS) --eval "(progn(package-initialize))" \
$$am__subdir_includes -L $(builddir) -L $(srcdir) \
--eval "(defun byte-compile-dest-file (f) \"$@\")" \
--eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \
else :; fi
55 changes: 55 additions & 0 deletions configure.ac
@@ -0,0 +1,55 @@
dnl FIXME: pick up from realgud.el
AC_INIT(realgud-ipdb, 1.0.0,)
AC_CONFIG_SRCDIR(ipdb/ipdb.el)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE

AC_PATH_PROG([EMACS], [emacs], [emacs])
AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs],
[location of emacs program]), EMACS=$withval)

AC_MSG_NOTICE("Checking emacs version")
$EMACS -batch -q --no-site-file -eval \
'(if (<= emacs-major-version 23)
(progn
(error "You need GNU Emacs 24 or better.")
(kill-emacs 1)
)
)'
if test $? -ne 0 ; then
AC_MSG_ERROR([Can't continue until above error is corrected.])
fi

##################################################################
# See if --with-lispdir was set. If not, set it to a reasonable default
# based on where bash thinks bashdb is supposed to be installed.
##################################################################

AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)

# Check whether --with-lispdir was given.
if test "${with_lispdir+set}" = set; then :
else
my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
if test "${my_lispdir+set}" = set; then :
with_lispdir=$my_lispdir
echo "'compute-lispdir.sh' lispdir install directory override: '$with_lispdir'"
fi
fi

##
## Find out where to install the debugger emacs lisp files
##
AM_PATH_LISPDIR
lispdir_realgud=$lispdir/realgud
AC_SUBST([lispdir])
AC_SUBST([lispdir_realgud])

AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")

AC_CONFIG_FILES([Makefile \
common.mk \
ipdb/Makefile \
test/Makefile \
])
AC_OUTPUT
5 changes: 5 additions & 0 deletions ipdb/Makefile.am
@@ -0,0 +1,5 @@
lisp_files = $(wildcard *.el)
EXTRA_DIST=$(lisp_files)
lisp_LISP = $(lisp_files)
include ../common.mk
lispdir = @lispdir@/lldb

0 comments on commit 90dfb29

Please sign in to comment.