General comment: Not clear whether this is checking (sort of implied by the
name odp_check) or changing files to match a predefined style.  If the
latter then some other name should be used as I wouldn't expect a "check"
function to write anything except diagnostics.  Some clarity on intended
use would help here.

On Wed, Mar 18, 2015 at 7:17 PM, Mike Holmes <[email protected]> wrote:

> ODP has not adopted a style that can be universally applied with a tool
> such as astyle.
> Remove astyle leaving only the cleanup for whitespace and checkpatch
> elements for checking src files before a patch is created.
>
> Signed-off-by: Mike Holmes <[email protected]>
> ---
>  scripts/odp_check | 10 +---------
>  1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/scripts/odp_check b/scripts/odp_check
> index 09c859b..33809dc 100755
> --- a/scripts/odp_check
> +++ b/scripts/odp_check
> @@ -1,8 +1,6 @@
>  #!/bin/bash
>  #
> -# This script is an indenter, white space remover,
> -# formatter, and beautifier and general source file
> -# clean up for the  ODP project.
> +# This script is a clean up for the ODP project src files.
>  #
>  # Usage
>  # ./scripts/opd_check <path/filename>
>

Typo: opd_check instead of odp_check


> @@ -10,11 +8,5 @@ set -e
>
>  DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
>
> -if ! type "astyle" >/dev/null >/dev/null; then
> -   echo "Please install astyle from http://astyle.sourceforge.net/";
> -   exit -1
> -fi
> -
> -astyle --style=linux --indent=force-tab=8 --align-pointer=name $1
>  $DIR/cleanfile $1
>  $DIR/checkpatch.pl -f $1
> --
> 2.1.0
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to