WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix bashism in Linux kernel makefile

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix bashism in Linux kernel makefile
From: Tobias Gruetzmacher <tobias@xxxxxxxxxxxxxx>
Date: Wed, 3 May 2006 13:47:24 +0200
Delivery-date: Fri, 05 May 2006 04:48:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060403
Hi,

this is a simple patch to remove some bashism from the Makefile.xen for
all those who are as pedantic as myself and install some simpler
POSIX-compliant shell as /bin/sh.

The Changeset is against xen-3.0-testing.hg, but the patch should also
apply to xen-unstable.hg.

Greetings Tobi

# HG changeset patch
# User tobias@xxxxxxxxxxxxxx
# Node ID fc9ac1720a562bd2f3307a278ddcf660d5a32adb
# Parent  c6fee5f7c83834fab2409975fc383643a3c3787d
Fix bashism in Linux kernel makefile

diff -r c6fee5f7c838 -r fc9ac1720a56 linux-2.6-xen-sparse/scripts/Makefile.xen
--- a/linux-2.6-xen-sparse/scripts/Makefile.xen Tue May 02 17:24:29 2006 +0100
+++ b/linux-2.6-xen-sparse/scripts/Makefile.xen Wed May 03 13:04:48 2006 +0200
@@ -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=$(var:.o=-xen.c); \
+                       s=$(var:.o=-xen.S); \
+                       oxen=$(var:.o=-xen.o); \
                        [ -f $(srctree)/$(src)/$${c} ] || \
                           [ -f $(srctree)/$(src)/$${s} ] \
                                && echo $$oxen \

-- 
GPG-Key 0xE2BEA341 - signed/encrypted mail preferred
My, oh so small, homepage: http://portfolio16.de/
http://www.fli4l.de/ - ISDN- & DSL-Router on one disk!
Registered FLI4L-User #00000003

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>