Skip to contentSkip to conversation

Fix bashism in scripts/Makefile.xen

PATCH New Herbert Xu 1 participant 1 message May 5, 2006

lore
Share & tools
lore

Herbert Xu

author
#0 lore raw

PATCH 1/1 Fix bashism in scripts/Makefile.xen

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.

Thanks,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
linux-2.6-xen-sparse/scripts/Makefile.xen +3 -3
diff -r decf309fb47b linux-2.6-xen-sparse/scripts/Makefile.xen
@@ -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 \

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel