ia64/xen-unstable

changeset 7680:a7a35d0a4a7c

Remove the execute bit from shell snipplets (the -common files not
starting with #!) found in the example directory under tools. It
further changes the installation path of the udev rules to comply with
what debian does: It places the rules file in /etc/udev/ und creates a
symlink to it in /etc/udev/rules.d.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Nov 08 12:14:33 2005 +0100 (2005-11-08)
parents becf19225569
children 8914eb171c66
files tools/examples/Makefile
line diff
     1.1 --- a/tools/examples/Makefile	Tue Nov 08 12:06:18 2005 +0100
     1.2 +++ b/tools/examples/Makefile	Tue Nov 08 12:14:33 2005 +0100
     1.3 @@ -26,14 +26,14 @@ XEN_SCRIPTS += network-route vif-route
     1.4  XEN_SCRIPTS += network-nat vif-nat
     1.5  XEN_SCRIPTS += block
     1.6  XEN_SCRIPTS += block-enbd block-nbd
     1.7 -XEN_SCRIPTS += xen-script-common.sh
     1.8 -XEN_SCRIPTS += xen-hotplug-common.sh xen-network-common.sh vif-common.sh
     1.9 -XEN_SCRIPTS += block-common.sh
    1.10 +XEN_SCRIPT_DATA = xen-script-common.sh
    1.11 +XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh
    1.12 +XEN_SCRIPT_DATA += block-common.sh
    1.13  
    1.14  XEN_HOTPLUG_DIR = /etc/hotplug
    1.15  XEN_HOTPLUG_SCRIPTS = xen-backend.agent
    1.16  
    1.17 -UDEV_RULES_DIR = /etc/udev/rules.d
    1.18 +UDEV_RULES_DIR = /etc/udev
    1.19  UDEV_RULES = xen-backend.rules
    1.20  
    1.21  DI = $(shell readlink -f $(DISTDIR))
    1.22 @@ -77,6 +77,10 @@ install-scripts:
    1.23  	    do \
    1.24  	    $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
    1.25  	done
    1.26 +	for i in $(XEN_SCRIPT_DATA); \
    1.27 +	    do \
    1.28 +	    $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
    1.29 +	done
    1.30  
    1.31  install-hotplug:
    1.32  	[ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
    1.33 @@ -88,10 +92,12 @@ install-hotplug:
    1.34  
    1.35  install-udev:
    1.36  	[ -d $(DESTDIR)$(UDEV_RULES_DIR) ] || \
    1.37 -		$(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)
    1.38 +		$(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d
    1.39  	for i in $(UDEV_RULES); \
    1.40  	    do \
    1.41 -	    $(INSTALL_PROG) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
    1.42 +	    $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
    1.43 +	    ( cd $(DESTDIR)$(UDEV_RULES_DIR)/rules.d ; \
    1.44 +	        ln -sf ../$$i . ) \
    1.45  	done
    1.46  
    1.47  clean: