From: Vinson Lee Date: Sat, 12 Oct 2013 01:33:08 +0000 (-0700) Subject: glsl: Use more portable bash invocation construct. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7c0b61782251c1dedb0b0fb0e6654af81249910;p=mesa.git glsl: Use more portable bash invocation construct. Fixes 'make check' on distros where bash is not at /bin/bash. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Tested-by: Ian Romanick --- diff --git a/src/glsl/tests/lower_jumps/create_test_cases.py b/src/glsl/tests/lower_jumps/create_test_cases.py index fbc6f0a84ea..9974681e02f 100644 --- a/src/glsl/tests/lower_jumps/create_test_cases.py +++ b/src/glsl/tests/lower_jumps/create_test_cases.py @@ -291,7 +291,7 @@ def create_test_case(doc_string, input_sexp, expected_sexp, test_name, args = ['../../glsl_test', 'optpass', '--quiet', '--input-ir', optimization] test_file = '{0}.opt_test'.format(test_name) with open(test_file, 'w') as f: - f.write('#!/bin/bash\n#\n# This file was generated by create_test_cases.py.\n#\n') + f.write('#!/usr/bin/env bash\n#\n# This file was generated by create_test_cases.py.\n#\n') f.write(doc_string) f.write('{0} <