always install scripts
PATCH 1/1 always install scripts
Currently, the scripts in /etc/xen/scripts won't get overwritten if they exist which means that changes can easily not get updated. This makes it so the scripts always get installed.
Also, it fixes the test for the configs to always check for existence -- arguably, they could be always replaced also, but figured that at least makes more sense to leave as-is.
Signed-off-by Jeremy Katz <[email protected]>
Jeremy
tools/examples/Makefile +2 -2
@@ -44,7 +44,7 @@ [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \ $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto for i in $(XEN_CONFIGS); \ - do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \ + do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \ $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \ done
@@ -52,7 +52,7 @@ [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \ $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR) for i in $(XEN_SCRIPTS); \ - do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \ + do \ $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \ done
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel