]> xenbits.xensource.com Git - people/liuw/stubdom.git/commitdiff
stubdom: install stubdompath.sh as data file
authorOlaf Hering <olaf@aepfle.de>
Thu, 18 Oct 2012 08:35:06 +0000 (09:35 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 18 Oct 2012 08:35:06 +0000 (09:35 +0100)
rpmlint complains a script helper which is only sourced:

[ 1875s] xen-tools.i586: W: script-without-shebang /usr/lib/xen/bin/stubdompath.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>
Makefile

index 969a61b567ab9316c6e9f3c34b2c0f06c7494ef8..50ba3602c2cdbb7bd09b7a724e0b32e2693c5a1b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -386,7 +386,8 @@ install-readme:
 
 install-ioemu: ioemu-stubdom
        $(INSTALL_DIR) "$(DESTDIR)$(LIBEXEC)"
-       $(INSTALL_PROG) stubdompath.sh stubdom-dm "$(DESTDIR)$(LIBEXEC)"
+       $(INSTALL_PROG) stubdom-dm "$(DESTDIR)$(LIBEXEC)"
+       $(INSTALL_DATA) stubdompath.sh "$(DESTDIR)$(LIBEXEC)"
        $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)"
        $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz"