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

Re: [Xen-devel] [PATCH] Minor fixes for non-Linux platforms

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Minor fixes for non-Linux platforms
From: Aron Griffis <aron@xxxxxx>
Date: Fri, 13 Oct 2006 17:27:51 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 13 Oct 2006 14:28:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200610121433.23484.Christoph.Egger@xxxxxxx>
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>
Mail-followup-to: Christoph Egger <Christoph.Egger@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <C1553CF2.27BE%Keir.Fraser@xxxxxxxxxxxx> <200610121433.23484.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Christoph Egger wrote:  [Thu Oct 12 2006, 08:33:22AM EDT]
> diff -r 49d096ef3d76 tools/check/chk
> --- a/tools/check/chk Fri Oct 13 10:58:29 2006 +0100
> +++ b/tools/check/chk Thu Oct 12 14:31:08 2006 +0200
> @@ -1,18 +1,7 @@
> -#!/bin/bash
> -
> -function usage {
> -    echo "Usage:"
> -    echo "\t$0 [build|install|clean]"
> -    echo
> -    echo "Check suitability for Xen build or install."
> -    echo "Exit with 0 if OK, 1 if not."
> -    echo "Prints only failed tests."
> -    echo
> -    echo "Calling with 'clean' removes generated files."
> -    exit 1
> -}
> +#!/bin/sh
>  
>  export PATH=${PATH}:/sbin:/usr/sbin
> +export OS=`uname -s`

export with variable assignment doesn't work on most Bourne shells.
These need to be split up:

PATH=${PATH}:/sbin:/usr/sbin
OS=`uname -s`
export PATH OS

>  case $1 in
>      build)
> @@ -25,7 +14,15 @@ case $1 in
>          exit 0
>          ;;
>      *)
> -        usage
> +     echo "Usage:"
> +     echo "\t$0 [build|install|clean]"

\t isn't standard (it doesn't even work on Linux without -e).  
You should insert a real tab there instead.

Aron

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel