diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-08 12:14:33 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-08 12:14:33 +0100 |
commit | bf4822dafb7e632422318a93a82d03482346a428 (patch) | |
tree | 581d6482a209166715eca8879f66941acb20fdd9 /tools/examples/Makefile | |
parent | 5e034a1be81bd22da0c9f5d927e0d38125654eb4 (diff) | |
download | xen-bf4822dafb7e632422318a93a82d03482346a428.tar.gz xen-bf4822dafb7e632422318a93a82d03482346a428.tar.bz2 xen-bf4822dafb7e632422318a93a82d03482346a428.zip |
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>
Diffstat (limited to 'tools/examples/Makefile')
-rw-r--r-- | tools/examples/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/examples/Makefile b/tools/examples/Makefile index c1e974093b..844a7f7330 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -26,14 +26,14 @@ XEN_SCRIPTS += network-route vif-route XEN_SCRIPTS += network-nat vif-nat XEN_SCRIPTS += block XEN_SCRIPTS += block-enbd block-nbd -XEN_SCRIPTS += xen-script-common.sh -XEN_SCRIPTS += xen-hotplug-common.sh xen-network-common.sh vif-common.sh -XEN_SCRIPTS += block-common.sh +XEN_SCRIPT_DATA = xen-script-common.sh +XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh +XEN_SCRIPT_DATA += block-common.sh XEN_HOTPLUG_DIR = /etc/hotplug XEN_HOTPLUG_SCRIPTS = xen-backend.agent -UDEV_RULES_DIR = /etc/udev/rules.d +UDEV_RULES_DIR = /etc/udev UDEV_RULES = xen-backend.rules DI = $(shell readlink -f $(DISTDIR)) @@ -77,6 +77,10 @@ install-scripts: do \ $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \ done + for i in $(XEN_SCRIPT_DATA); \ + do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \ + done install-hotplug: [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \ @@ -88,10 +92,12 @@ install-hotplug: install-udev: [ -d $(DESTDIR)$(UDEV_RULES_DIR) ] || \ - $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR) + $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d for i in $(UDEV_RULES); \ do \ - $(INSTALL_PROG) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ + $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ + ( cd $(DESTDIR)$(UDEV_RULES_DIR)/rules.d ; \ + ln -sf ../$$i . ) \ done clean: |