mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
rpmlint complains a script helper which is only sourced: [ 1875s] xen-tools.i586: W: script-without-shebang /etc/xen/scripts/hotplugpath.sh [ 1875s] This text file has executable bits set or is located in a path dedicated for [ 1875s] executables, but lacks a shebang and cannot thus be executed. If the file is [ 1875s] meant to be an executable script, add the shebang, otherwise remove the [ 1875s] executable bits or move the file elsewhere. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
40 lines
805 B
Makefile
40 lines
805 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
HOTPLUGPATH="hotplugpath.sh"
|
|
|
|
# OS-independent hotplug scripts go in this directory
|
|
|
|
# Xen scripts to go there.
|
|
XEN_SCRIPTS =
|
|
XEN_SCRIPT_DATA = $(HOTPLUGPATH)
|
|
|
|
genpath-target = $(call buildmakevars2file,$(HOTPLUGPATH))
|
|
$(eval $(genpath-target))
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: genpath
|
|
|
|
.PHONY: install
|
|
install: all install-scripts
|
|
|
|
.PHONY: install-scripts
|
|
install-scripts: build
|
|
[ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
|
|
set -e; for i in $(XEN_SCRIPTS); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
set -e; for i in $(XEN_SCRIPT_DATA); \
|
|
do \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(HOTPLUGPATH)
|