[PATCH] build.sh: new command line option
Peter Hutterer
peter.hutterer at who-t.net
Thu May 27 16:53:40 PDT 2010
On Thu, May 27, 2010 at 03:18:57AM +0200, Mariusz Ceier wrote:
> New command line option for autoresuming build:
> ./build.sh --clone -rf build.modules prefix
>
> When build.modules doesn't exist it is equivalent to:
> ./build.sh --clone -f build.modules prefix
>
> When build.modules does exist it is equivalent to:
> ./build.sh --clone -f build.modules -r `tail -n 1 build.modules` prefix
>
> Signed-off-by: Mariusz Ceier <mceier at gmail.com>
> ---
> build.sh | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/build.sh b/build.sh
> index 79ae83a..b0001a0 100755
> --- a/build.sh
> +++ b/build.sh
> @@ -675,6 +675,7 @@ usage() {
> echo " -o module/component : build just this component"
> echo " -p : run git pull on each component"
> echo " -r module/component : resume building with this component"
> + echo " -rf file : autoresume from file"
having used this quite extensively today I have to admit I don't feel
comfortable with an "-rf" option. I'm always worried that I'll get the last
"rm -rf" from history and wipe out things that weren't meant to :)
(yes, there's plenty of other strings for history matching, but...)
how about --autoresume?
Cheers,
Peter
> echo " -s sudo-command : sudo command to use"
> echo " --clone : clone non-existing repositories (uses \$GITROOT if set)"
> echo " --check : run make check in addition to others"
> @@ -746,6 +747,11 @@ do
> shift
> RESUME=$1
> ;;
> + -rf)
> + shift
> + BUILT_MODULES_FILE=$1
> + [ -f $1 ] && RESUME=`tail -n 1 $1`
> + ;;
> -s)
> shift
> SUDO=$1
> --
> 1.7.1
>
More information about the xorg-devel
mailing list