From: Jeremy Katz Subject: [PATCH] always install scripts Date: Tue, 04 Oct 2005 22:49:25 -0400 Message-ID: <1128480565.9606.10.camel@bree.local.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-JYTqEjz6iVLSEaUuzC+G" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --=-JYTqEjz6iVLSEaUuzC+G Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 Jeremy --=-JYTqEjz6iVLSEaUuzC+G Content-Disposition: attachment; filename=xen-configs.patch Content-Type: text/x-patch; name=xen-configs.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 540d17fe32ce tools/examples/Makefile --- a/tools/examples/Makefile Tue Oct 4 14:34:02 2005 +++ b/tools/examples/Makefile Tue Oct 4 22:46:17 2005 @@ -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 --=-JYTqEjz6iVLSEaUuzC+G Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-JYTqEjz6iVLSEaUuzC+G--