[PATCH] build.sh: add -f flag to append list of modules to a file.

Ian Romanick idr at freedesktop.org
Mon Mar 16 18:45:39 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Hutterer wrote:
> Append the module being built (e.g. lib/libX11) to the file specified with
> -f. If the build fails, resuming the build is as easy as build.sh -r `tail -n
> 1 filename` ...
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Clever.  I like it.

Acked-by: Ian Romanick <ian.d.romanick at intel.com>

> ---
>  build.sh |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/build.sh b/build.sh
> index fbaff6e..6b4f752 100755
> --- a/build.sh
> +++ b/build.sh
> @@ -114,6 +114,11 @@ build() {
>      fi
>  
>      echo "Building $1 module component $2..."
> +
> +    if test x"$BUILT_MODULES_FILE" != "x"; then
> +        echo "$1/$2" >> $BUILT_MODULES_FILE
> +    fi
> +
>      old_pwd=`pwd`
>      cd $SRCDIR || failed cd1 $1 $2
>  
> @@ -624,6 +629,8 @@ usage() {
>      echo "  -c : run make clean in addition to others"
>      echo "  -d : run make distcheck in addition to others"
>      echo "  -D : run make dist in addition to others"
> +    echo "  -f file: append module being built to file. The last line of this"
> +    echo "           file can be used for resuming with -r."
>      echo "  -g : build with debug information"
>      echo "  -n : do not quit after error; just print error message"
>      echo "  -o module/component : build just this component"
> @@ -657,6 +664,10 @@ do
>      -D)
>  	DIST=1
>  	;;
> +    -f)
> +        shift
> +        BUILT_MODULES_FILE=$1
> +        ;;
>      -g)
>  	CFLAGS="-g3 -O0"
>  	export CFLAGS

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm/AMMACgkQX1gOwKyEAw+RSACghnU9dkVH0RD8bfmNX+zODlGn
UmQAn279M3inBIwjkDIGc88zVLBuJXit
=G7Gx
-----END PGP SIGNATURE-----


More information about the xorg-devel mailing list