mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools/pygrub: Fix install when $(BINDIR) and $(PRIVATE_BINDIR) are the same
Do not override pygrub with a symbolic link in this case. Signed-off-by: Christoph Egger <chegger@amazon.de> Reviewed-by: Matt Wilson <msw@amazon.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ ijc -- reworded summary to fit on one line ]
This commit is contained in:
1 parent
d6d3336066
commit
f5de6ffdff
1 file changed
+2
-1
@@ -14,7 +14,8 @@ install: all
|
||||
$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
|
||||
--install-scripts=$(PRIVATE_BINDIR) --force
|
||||
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
|
||||
set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
|
||||
set -e; if [ $(BINDIR) != $(PRIVATE_BINDIR) -a \
|
||||
"`readlink -f $(DESTDIR)/$(BINDIR)`" != \
|
||||
"`readlink -f $(PRIVATE_BINDIR)`" ]; then \
|
||||
ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \
|
||||
fi
|
||||
|
||||