b2e75b5da0
Bash is not always installed in /bin and we should not hardcode the path of it in source code which is expected to be built on many operating systems and distributions. Since most scripts using #!/bin/bash here doesn't have any bashism, they can be converted to #!/bin/sh instead of using /usr/bin/env trick.
16 lines
385 B
Bash
Executable File
16 lines
385 B
Bash
Executable File
#!/bin/sh
|
|
|
|
outputfile=$1
|
|
shift
|
|
test_source_files="$@"
|
|
|
|
echo '/* ** This file is autogenerated. Do not edit. ** */' > $outputfile
|
|
echo '' >> $outputfile
|
|
echo 'const char *test_unit_names[] = {' >> $outputfile
|
|
|
|
for test_source_file in $test_source_files; do
|
|
echo " \"$(echo $test_source_file | sed 's/.*\(test-[a-z0-9\-]\+\)\.c/\1/')\"," >> $outputfile
|
|
done
|
|
|
|
echo '};' >> $outputfile
|