Use $(SHELL) to find shell to run get-fields.sh script.
authorKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 12:47:01 +0000 (13:47 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 23 Oct 2007 12:47:01 +0000 (13:47 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/include/Makefile
xen/tools/get-fields.sh

index 2d0d8104696340e5dc81e82f47b30dff6b5b23ea..64c87f6722a02c0694486eb0efc82a6a82f1260e 100644 (file)
@@ -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 $@
 
index 098abab389594bd3e3232f532d05b9509411ff0a..cf81061e4b8890d771277bec44bb52eaec58b9a1 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 test -n "$1" -a -n "$2" -a -n "$3"
 set -ef