From 86375165650e337444cc5d528a1bfdc40686c60d Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 18 Feb 2016 18:56:22 +0100 Subject: [PATCH] linux: fix the \n handling --- linux_various/validate_glsl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux_various/validate_glsl.sh b/linux_various/validate_glsl.sh index 44ac65033b..7ce2315e77 100755 --- a/linux_various/validate_glsl.sh +++ b/linux_various/validate_glsl.sh @@ -73,7 +73,7 @@ head() { \rm -f $TEST touch $TEST - echo "#version $GL_VERSION\n" >> $TEST + echo "#version $GL_VERSION" >> $TEST } tail() @@ -91,7 +91,7 @@ vertex_test() { head echo "#define VERTEX_SHADER 1" >> $TEST - echo $MACRO >> $TEST + echo -e $MACRO >> $TEST tail echo "Vertex check with macro : $MACRO" @@ -103,9 +103,9 @@ fragment_test() { head echo "#define FRAGMENT_SHADER 1" >> $TEST - echo "$MACRO" >> $TEST + echo -e "$MACRO" >> $TEST echo "Fragment check with macro : " - echo "$MACRO" + echo -e "$MACRO" tail $FRAG $ENTRY $TEST