evas: Fix distcheck by disabling shaders generation

make distcheck is verified by checking the env var "top_distdir"
This is not a great solution but should work.
This commit is contained in:
Jean-Philippe Andre 2016-06-23 17:46:35 +09:00
parent e2fad3f22f
commit 2b8912462e
2 changed files with 13 additions and 0 deletions

View File

@ -3,9 +3,16 @@
# This script will generate a C file containing all the shaders used by Evas
DIR=`dirname $0`
cd $DIR/../../../../../
OUTPUT="$DIR/evas_gl_shaders.x"
# Skip generation during make distcheck
if [ "${top_distdir}" != "" ] ; then exit 0; fi
# Skip generation if file can not be written to
if [ ! -w ${OUTPUT} ] ; then exit 0; fi
# Skip generation if there is no diff (or no git)
if ! git rev-parse 2>> /dev/null >> /dev/null ; then exit 0 ; fi
if git diff --quiet --exit-code -- "$DIR"

View File

@ -7,6 +7,12 @@ cd $DIR/../../../../../
OUTPUT="$DIR/evas_gl_3d_shaders.x"
# Skip generation during make distcheck
if [ "${top_distdir}" != "" ] ; then exit 0; fi
# Skip generation if file can not be written to
if [ ! -w ${OUTPUT} ] ; then exit 0; fi
# Skip generation if there is no diff (or no git)
if ! git rev-parse 2>> /dev/null >> /dev/null ; then exit 0 ; fi
if git diff --quiet --exit-code -- "$DIR"