Minor (partial) build fix for 2.4.
authorshand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Mon, 29 Aug 2005 05:50:04 +0000 (21:50 -0800)
committershand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Mon, 29 Aug 2005 05:50:04 +0000 (21:50 -0800)
Signed-off-by: Steven Hand <steven@xensource.com>
linux-2.4-xen-sparse/mkbuildtree

index 40381c8895f2e90b136863f0bb4149ab93304ca6..45e8b0362da30f8183957825ab08bbb788de29f5 100755 (executable)
@@ -102,9 +102,9 @@ for i in `find . -type l`; do rm -f $i; done
 relative_lndir ${RS}
 rm -f mkbuildtree
 
-set ${RS}/../linux-2.6-xen-sparse
-[ "$1" == "${RS}/../linux-2.6-xen-sparse" ] && { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; }
-LINUX_26="$1"
+LINUX_26=${RS}/../linux-2.6-xen-sparse
+[ -d $LINUX_26 ] || { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; }
+
 
 # Create links to the shared definitions of the Xen interfaces.
 rm -rf ${AD}/include/asm-xen/xen-public