Merge pull request #803 from teto/nixos_clean
Merge in nixos changes: 1. More flexible makefile 2. Fix problems from setting vi-ins-mode-string in .inputrc (fixes #799)
This commit is contained in:
@@ -8,8 +8,9 @@ PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
|||||||
MNEXEC = mnexec
|
MNEXEC = mnexec
|
||||||
MANPAGES = mn.1 mnexec.1
|
MANPAGES = mn.1 mnexec.1
|
||||||
P8IGN = E251,E201,E302,E202,E126,E127,E203,E226
|
P8IGN = E251,E201,E302,E202,E126,E127,E203,E226
|
||||||
BINDIR = /usr/bin
|
PREFIX ?= /usr
|
||||||
MANDIR = /usr/share/man/man1
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
MANDIR ?= $(PREFIX)/share/man/man1
|
||||||
DOCDIRS = doc/html doc/latex
|
DOCDIRS = doc/html doc/latex
|
||||||
PDF = doc/latex/refman.pdf
|
PDF = doc/latex/refman.pdf
|
||||||
|
|
||||||
@@ -46,9 +47,13 @@ slowtest: $(MININET)
|
|||||||
mnexec: mnexec.c $(MN) mininet/net.py
|
mnexec: mnexec.c $(MN) mininet/net.py
|
||||||
cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(PYMN) --version`\" $< -o $@
|
cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(PYMN) --version`\" $< -o $@
|
||||||
|
|
||||||
install: $(MNEXEC) $(MANPAGES)
|
install-mnexec: $(MNEXEC)
|
||||||
install $(MNEXEC) $(BINDIR)
|
install -D $(MNEXEC) $(BINDIR)/$(MNEXEC)
|
||||||
install $(MANPAGES) $(MANDIR)
|
|
||||||
|
install-manpages: $(MANPAGES)
|
||||||
|
install -D -t $(MANDIR) $(MANPAGES)
|
||||||
|
|
||||||
|
install: install-mnexec install-manpages
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
develop: $(MNEXEC) $(MANPAGES)
|
develop: $(MNEXEC) $(MANPAGES)
|
||||||
|
|||||||
+3
-1
@@ -135,7 +135,9 @@ class Node( object ):
|
|||||||
# -s: pass $* to shell, and make process easy to find in ps
|
# -s: pass $* to shell, and make process easy to find in ps
|
||||||
# prompt is set to sentinel chr( 127 )
|
# prompt is set to sentinel chr( 127 )
|
||||||
cmd = [ 'mnexec', opts, 'env', 'PS1=' + chr( 127 ),
|
cmd = [ 'mnexec', opts, 'env', 'PS1=' + chr( 127 ),
|
||||||
'bash', '--norc', '-is', 'mininet:' + self.name ]
|
'bash', '--norc', '--noediting',
|
||||||
|
'-is', 'mininet:' + self.name ]
|
||||||
|
|
||||||
# Spawn a shell subprocess in a pseudo-tty, to disable buffering
|
# Spawn a shell subprocess in a pseudo-tty, to disable buffering
|
||||||
# in the subprocess and insulate it from signals (e.g. SIGINT)
|
# in the subprocess and insulate it from signals (e.g. SIGINT)
|
||||||
# received by the parent
|
# received by the parent
|
||||||
|
|||||||
Reference in New Issue
Block a user