ovsdbmonitor: Put temporary file in ovsdb/ovsdbmonitor directory.
authorBen Pfaff <blp@nicira.com>
Tue, 15 Jun 2010 17:38:44 +0000 (10:38 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jun 2010 17:25:16 +0000 (10:25 -0700)
The temporary file ovsdbmonitor.tmp was being put into the root of the
build directory, which seems unnecessary.

Also, delete the temporary file when we no longer need it.

ovsdb/ovsdbmonitor/automake.mk

index 5d1f960b20906a65019d78707b7e0b082ceee9a3..dffb0c8a6665b2ee16ea3262e3cb05237b84461c 100644 (file)
@@ -32,9 +32,10 @@ if BUILD_OVSDBMONITOR
 noinst_SCRIPTS += ovsdb/ovsdbmonitor/ovsdbmonitor
 ovsdbmonitor_DATA = $(ovsdbmonitor_pyfiles)
 install-exec-local:
-       sed -e '/NOINSTALL/d' < ovsdb/ovsdbmonitor/ovsdbmonitor > ovsdbmonitor.tmp
-       chmod +x ovsdbmonitor.tmp
-       $(INSTALL_PROGRAM) ovsdbmonitor.tmp $(DESTDIR)$(bindir)/ovsdbmonitor
+       sed -e '/NOINSTALL/d' < ovsdb/ovsdbmonitor/ovsdbmonitor > ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
+       chmod +x ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
+       $(INSTALL_PROGRAM) ovsdb/ovsdbmonitor/ovsdbmonitor.tmp $(DESTDIR)$(bindir)/ovsdbmonitor
+       rm ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
 endif
 
 SUFFIXES += .ui .py