From: Emil Velikov <[email protected]>

Rather than hardcoding glcpp/other use `basename "$0"` which expands
appropriatelly.

Signed-off-by: Emil Velikov <[email protected]>
---
 src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh | 2 +-
 src/compiler/glsl/glcpp/tests/glcpp-test.sh       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh 
b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
index c0ed9e04bc6..6a77a6e6663 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh
@@ -51,7 +51,7 @@ run_test ()
 usage ()
 {
        cat <<EOF
-Usage: glcpp-cr-lf [options...]
+Usage: `basename "$0"` [options...]
 
 Run the entire glcpp-test suite several times, each time with each source
 file transformed to use a non-standard line-termination character. Each
diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test.sh 
b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
index d98c408f739..44c9451cf60 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test.sh
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test.sh
@@ -22,7 +22,7 @@ trap 'rm $test.valgrind-errors; exit 1' INT QUIT
 usage ()
 {
     cat <<EOF
-Usage: glcpp [options...]
+Usage: `basename "$0"` [options...]
 
 Run the test suite for mesa's GLSL pre-processor.
 
-- 
2.11.1

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to