revision 1288:fdb8f59143c7
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1288:fdb8f59143c7 |
parent | 1287:dac8f363f1fe |
child | 1289:ef8b0ddb8185 |
author | nkeynes |
date | Wed Jul 04 12:01:31 2012 +1000 (11 years ago) |
Remove use of extended regexes to make porting easier
1.1 --- a/src/tools/genglsl.c Sun Jul 01 13:20:34 2012 +10001.2 +++ b/src/tools/genglsl.c Wed Jul 04 12:01:31 2012 +10001.3 @@ -186,7 +186,7 @@1.4 g_free(quoted_opts_arr[count++]);1.5 }1.7 - const char *command = g_strdup_printf("%s -E 's/^#(program|vertex|fragment)/#pragma \\1/' %s | %s %s - > %s",1.8 + const char *command = g_strdup_printf("%s -e 's/^#program/#pragma program/' -e 's/^#fragment/#pragma fragment/' -e 's/#vertex/#pragma vertex/' %s | %s %s - > %s",1.9 BUILD_SED_PROG, quoted_filename, BUILD_CPP_PROG, quoted_cpp_opts, tmpname );1.10 if( system(command) != 0 ) {1.11 fprintf( stderr, "Error: unable to run preprocessor command '%s' (%s)\n", command, strerror(errno) );
.