forked from enlightenment/efl
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:
parent
e2fad3f22f
commit
2b8912462e
|
@ -3,9 +3,16 @@
|
||||||
# This script will generate a C file containing all the shaders used by Evas
|
# This script will generate a C file containing all the shaders used by Evas
|
||||||
|
|
||||||
DIR=`dirname $0`
|
DIR=`dirname $0`
|
||||||
|
cd $DIR/../../../../../
|
||||||
|
|
||||||
OUTPUT="$DIR/evas_gl_shaders.x"
|
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)
|
# 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 rev-parse 2>> /dev/null >> /dev/null ; then exit 0 ; fi
|
||||||
if git diff --quiet --exit-code -- "$DIR"
|
if git diff --quiet --exit-code -- "$DIR"
|
||||||
|
|
|
@ -7,6 +7,12 @@ cd $DIR/../../../../../
|
||||||
|
|
||||||
OUTPUT="$DIR/evas_gl_3d_shaders.x"
|
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)
|
# 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 rev-parse 2>> /dev/null >> /dev/null ; then exit 0 ; fi
|
||||||
if git diff --quiet --exit-code -- "$DIR"
|
if git diff --quiet --exit-code -- "$DIR"
|
||||||
|
|
Loading…
Reference in New Issue