summarylogtreecommitdiffstats
path: root/fix-mininet-version.patch
blob: 2cdf8afdf60d526aec900ad087de71258fe330f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Makefile b/Makefile
index b4175da..37c8747 100755
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ test: $(MININET) $(TEST)
 
 mnexec: mnexec.c $(MN) mininet/net.py
 	$(CC) $(CFLAGS) $(LDFLAGS) \
-	-DVERSION=\"`PYTHONPATH=. XTABLES_LIBDIR=/usr/lib/x86_64-linux-gnu/xtables $(PYMN) --version 2>&1`\" $< -o $@
+	-DVERSION=\"`PYTHONPATH=. XTABLES_LIBDIR=/usr/lib/x86_64-linux-gnu/xtables $(PYMN) --version 2>&1 | grep -oE '[0-9a-z]+\.[0-9a-z]+\.[0-9a-z]+'`\" $< -o $@
 
 install-mnexec: $(MNEXEC)
 	install -D $(MNEXEC) $(BINDIR)/$(MNEXEC)