From: Herbert Xu Subject: [PATCH] Fix bashism in scripts/Makefile.xen Date: Fri, 5 May 2006 21:20:55 +1000 Message-ID: <20060505112055.GA15366@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zhXaljGHf11kAtnf" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi: The following patch replaces a bash-specific substitution with equivalent POSIX /bin/sh substitutions. This allows a Xen-patched Linux to build when /bin/sh is a POSIX shell other than bash. Signed-off-by: Herbert Xu Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xen-bashism.patch" diff -r decf309fb47b linux-2.6-xen-sparse/scripts/Makefile.xen --- a/linux-2.6-xen-sparse/scripts/Makefile.xen Tue May 02 17:23:21 2006 +0100 +++ b/linux-2.6-xen-sparse/scripts/Makefile.xen Wed May 03 15:41:23 2006 +1000 @@ -2,9 +2,9 @@ # cherrypickxen($1 = allobj) cherrypickxen = $(foreach var, $(1), \ $(shell o=$(var); \ - c=$${o/%.o/-xen.c}; \ - s=$${o/%.o/-xen.S}; \ - oxen=$${o/%.o/-xen.o}; \ + c=$${o%.o}-xen.c; \ + s=$${o%.o}-xen.S; \ + oxen=$${o%.o}-xen.o; \ [ -f $(srctree)/$(src)/$${c} ] || \ [ -f $(srctree)/$(src)/$${s} ] \ && echo $$oxen \ --zhXaljGHf11kAtnf Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --zhXaljGHf11kAtnf--