On Wed, Dec 29, 2010 at 11:30:03AM -0500, Gaetan Nadon wrote:
> This will catch the case where user forgets to set PREFIX
> and does not have write permission in the /usr/local default location
> 
> Signed-off-by: Gaetan Nadon <[email protected]>
> ---
>  build.sh |   23 ++++++++++++++++++++++-
>  1 files changed, 22 insertions(+), 1 deletions(-)
> 
> diff --git a/build.sh b/build.sh
> index 1a29758..afcb158 100755
> --- a/build.sh
> +++ b/build.sh
> @@ -68,6 +68,10 @@ setup_buildenv() {
>      check_full_path $LIBDIR LIBDIR
>      check_full_path $LOCALSTATEDIR LOCALSTATEDIR
>  
> +    # This will catch the case where user forgets to set PREFIX
> +    # and does not have write permission in the /usr/local default location
> +    check_writable_dir $PREFIX PREFIX

Seems like it should check ${DESTDIR}${PREFIX} instead.

-- 
Ville Syrjälä
[email protected]
http://www.sci.fi/~syrjala/
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to