From eab576f8d60b834e34f5fe9beed90d2cd09b9fd5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 23 Oct 2007 13:47:01 +0100 Subject: [PATCH] Use $(SHELL) to find shell to run get-fields.sh script. Signed-off-by: Keir Fraser --- xen/include/Makefile | 2 +- xen/tools/get-fields.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/include/Makefile b/xen/include/Makefile index 2d0d810469..64c87f6722 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -61,7 +61,7 @@ compat/%.c: public/%.h xlat.lst Makefile compat/xlat.h: xlat.lst $(filter-out compat/xlat.h,$(headers-y)) $(BASEDIR)/tools/get-fields.sh Makefile grep -v '^[ ]*#' xlat.lst | \ while read what name hdr; do \ - /bin/sh $(BASEDIR)/tools/get-fields.sh "$$what" compat_$$name $$(echo compat/$$hdr | sed 's,@arch@,$(compat-arch-y),g') || exit $$?; \ + $(SHELL) $(BASEDIR)/tools/get-fields.sh "$$what" compat_$$name $$(echo compat/$$hdr | sed 's,@arch@,$(compat-arch-y),g') || exit $$?; \ done >$@.new mv -f $@.new $@ diff --git a/xen/tools/get-fields.sh b/xen/tools/get-fields.sh index 098abab389..cf81061e4b 100644 --- a/xen/tools/get-fields.sh +++ b/xen/tools/get-fields.sh @@ -1,4 +1,3 @@ -#!/bin/sh test -n "$1" -a -n "$2" -a -n "$3" set -ef -- 2.30.2