[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Prevent a stray error message in the case that either DISTDIR or



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID fbc3a2657fefa4621e52de168efc3f99f74c8f03
# Parent  a6a5a1b963e8894d127dc8f71087af7d0270fd1a
Prevent a stray error message in the case that either DISTDIR or
DESTDIR is empty, by preventing readlink from being called in that
case.

Another option would be to use readlink -s, but that has the
undesirable effect of staying silent in situations other than empty
DISTDIR/DESTDIR

Signed-off-by: Aron Griffis <aron@xxxxxx>

diff -r a6a5a1b963e8 -r fbc3a2657fef tools/examples/Makefile
--- a/tools/examples/Makefile   Tue Mar 21 21:55:29 2006
+++ b/tools/examples/Makefile   Tue Mar 21 21:57:47 2006
@@ -38,8 +38,8 @@
 UDEV_RULES_DIR = /etc/udev
 UDEV_RULES = xen-backend.rules
 
-DI = $(shell readlink -f $(DISTDIR))
-DE = $(shell readlink -f $(DESTDIR))
+DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
+DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
 ifeq ($(findstring $(DI),$(DE)),$(DI))
 HOTPLUGS=install-hotplug install-udev
 else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.